<jupyter_start><jupyter_text>pydub can open and save WAV files without any dependencies, you need to have an audio playback package installed to play audio. simpleaudio is strongly reccoended, but payaudio, ffplay, and avplay are alternative options<jupyter_code># following code can be used to play a WAV files with pydub
from pydub import AudioSegment 
from pydub.playback import play

sound = AudioSegment.from_wav('alert.wav')
play(sound)<jupyter_output><empty_output><jupyter_text>In order to play back other audio types, such as MP3 files, ffmeg or libav sould be installed. pip install ffmpeg-python<jupyter_code># With ffmpeg installed, playing back an MP3 files requires only a small change in our earlier code 
from pydub import AudioSegment 
from pydub.playback import play 
sound = AudioSegment.from_mp3('')
play(sound)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.056910569105691054, 'fraction_numerical': 0.003484320557491289, 'mean_word_length': 6.183333333333334, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '370546', 'license': 'MIT', 'n_tokens_mistral': 264, 'n_tokens_neox': 258, 'n_words': 105, 'path': 'playing_sounds.ipynb', 'repo_name': 'Indra-Kumar-Chaudhary/computervision', 'size': '861'}