Get startedGet started for free

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!

This exercise is part of the course

Multi-Modal Systems with the OpenAI API

View Course

Exercise instructions

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

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

client = OpenAI(api_key="")

# Open the customer_call.wav file
audio_file = ____

# Create a transcript from the audio file
response = ____
transcript = response.____
print(transcript)
Edit and Run Code