<jupyter_start><jupyter_text>Clone the library<jupyter_code>!git clone https://github.com/ARBML/klaam
%cd klaam<jupyter_output><empty_output><jupyter_text>Install dependencies<jupyter_code>%%capture
!pip install -r requirements.txt<jupyter_output><empty_output><jupyter_text>Record audioOnly works on colab by giving premssions to record the audio from the browser<jupyter_code>from audio_utils import get_audio
get_audio()<jupyter_output><empty_output><jupyter_text>Try out classification model<jupyter_code>from klaam import SpeechClassification
model = SpeechClassification()
model.classify('demo.wav')<jupyter_output><empty_output><jupyter_text>Try out recongition model<jupyter_code>from klaam import SpeechRecognition
 model = SpeechRecognition()
 model.transcribe('demo.wav')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.09236453201970443, 'fraction_numerical': 0.0, 'mean_word_length': 11.904761904761905, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '5', 'dir': 'jupyter-structured-clean-dedup', 'id': '74479', 'license': 'MIT', 'n_tokens_mistral': 283, 'n_tokens_neox': 276, 'n_words': 48, 'path': 'demo_with_mic.ipynb', 'repo_name': 'FarisHijazi/klaam', 'size': '812'}