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!
Este ejercicio forma parte del curso
Multi-Modal Systems with the OpenAI API
Instrucciones del ejercicio
- Open the customer recording stored in the file
customer_call.wav. - Create a transcription request to the Audio endpoint and extract the transcript text.
Ejercicio interactivo práctico
Prueba este ejercicio y completa el código de muestra.
client = OpenAI(api_key="")
# Open the customer_call.wav file
audio_file = ____
# Create a transcript from the audio file
response = ____
transcript = response.____
print(transcript)