<jupyter_start><jupyter_text>There seems to be issues getting the raw data from these files Ignoring this method for now<jupyter_code>from pydub import AudioSegment

# song = AudioSegment.from_mp3("never_gonna_give_you_up.mp3")
song = AudioSegment.from_file("sounds/mp4/cello_pluck/expert/c2g2.m4a", "m4a")
# pydub does things in milliseconds
ten_seconds = 10 * 1000

first_10_seconds = song[:ten_seconds]
# song.raw_data
mono = song.split_to_mono
type(song)
song.get_array_of_samples()
import matplotlib.pyplot as plt
import seaborn as sns
%matplotlib inline
sns.set()

plt.plot(first_10_seconds, '.')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.0949367088607595, 'fraction_numerical': 0.02689873417721519, 'mean_word_length': 6.9125, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '189258', 'license': 'MIT', 'n_tokens_mistral': 251, 'n_tokens_neox': 237, 'n_words': 53, 'path': 'in_progress/pydub.ipynb', 'repo_name': 'pstetz/sound_analyzer', 'size': '632'}