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 exercício faz parte do curso
Multi-Modal Systems with the OpenAI API
Instruções do exercício
- Open the customer recording stored in the file
customer_call.wav. - Create a transcription request to the Audio endpoint and extract the transcript text.
Exercício interativo prático
Experimente este exercício completando este código de exemplo.
client = OpenAI(api_key="")
# Open the customer_call.wav file
audio_file = ____
# Create a transcript from the audio file
response = ____
transcript = response.____
print(transcript)