-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Closed
Labels
feature requestNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
🚀 The feature, motivation and pitch
Now that we have support for Whisper (#11280), we should consider implementing OpenAI's explicit speech-to-text API. Documentation is here https://platform.openai.com/docs/guides/speech-to-text
Example of v1/audio/transcriptions
from openai import OpenAI
client = OpenAI()
audio_file= open("/path/to/file/audio.mp3", "rb")
transcription = client.audio.transcriptions.create(
model="whisper-1",
file=audio_file
)
print(transcription.text)
Example of v1/audio/translations
from openai import OpenAI
client = OpenAI()
audio_file = open("/path/to/file/german.mp3", "rb")
transcription = client.audio.translations.create(
model="whisper-1",
file=audio_file,
)
print(transcription.text)
Alternatives
No response
Additional context
No response
Before submitting a new issue...
- Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.
DarkLight1337, Isotr0py, williameric87, ywang96, greg2705 and 8 more
Metadata
Metadata
Assignees
Labels
feature requestNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed