LoslegenKostenlos loslegen

Using the helper functions you've built

Okay, now we've got some helper functions ready to go, it's time to put them to use!

You'll first use convert_to_wav() to convert Acme's call_1.mp3 (file) to .wav format and save it as call_1.wav

Using show_pydub_stats() you find call_1.wav has 2 channels so you decide to split them using PyDub's split_to_mono(). Acme tells you the customer channel is likely channel 2. So you export channel 2 using PyDub's .export().

Finally, you'll use transcribe_audio() to transcribe channel 2 only.

Diese Übung ist Teil des Kurses

Spoken Language Processing in Python

Kurs anzeigen

Interaktive Übung

Versuche dich an dieser Übung, indem du diesen Beispielcode vervollständigst.

# Convert mp3 file to wav
convert_to_wav(____)

# Check the stats of new file
call_1 = ____(____)
Code bearbeiten und ausführen