LoslegenKostenlos loslegen

Transcribing customer calls

You're working as an AI Engineer at DataCamp, which has an international learner base spanning 180+ countries. Their customer support team want to test receiving customer queries via phone call; however, they need your support to design a system to help their agents handle these requests.

To start, you will use the OpenAI API to transcribe their customer calls in the language they were recorded in.

As this is a case study, less code will be provided for you than in the previous chapter. If you struggle, don't give up, you can do this!

Diese Übung ist Teil des Kurses

Multi-Modal Systems with the OpenAI API

Kurs anzeigen

Anleitung zur Übung

  • Open the customer recording stored in the file customer_call.wav.
  • Create a transcription request to the Audio endpoint and extract the transcript text.

Interaktive Übung

Vervollständige den Beispielcode, um diese Übung erfolgreich abzuschließen.

client = OpenAI(api_key="")

# Open the customer_call.wav file
audio_file = ____

# Create a transcript from the audio file
response = ____
transcript = response.____
print(transcript)
Code bearbeiten und ausführen