You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
file: UploadFile=File(description="The audio file object (not file name) to transcribe, in one of these formats: mp3 or wav."),
28
-
model: str=Form(default=..., description="ID of the model to use. Call `/v1/models` endpoint to get the list of available models, only `automatic-speech-recognition` model type is supported."),
29
-
language: AudioTranscriptionLanguage=Form(default=AudioTranscriptionLanguage.EMPTY, description="The language of the output audio. If the output language is different than the audio language, the audio language will be translated into the output language. Supplying the output language in ISO-639-1 (e.g. en, fr) format will improve accuracy and latency."),
30
-
prompt: str|None=Form(default=None, description="An optional text to tell the model what to do with the input audio. Default is `Transcribe this audio in this language : {language}`"),
31
-
response_format: Literal["json", "text"] =Form(default="json", description="The format of the transcript output, in one of these formats: `json` or `text`."),
32
-
temperature: float|None=Form(default=None, ge=0, le=1, description="The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use log probability to automatically increase the temperature until certain thresholds are hit."),
file: UploadFile=File(description="The audio file object (not file name) to transcribe, in one of these formats: mp3 or wav.") # fmt: off
24
+
model: str=Field(default=..., description="ID of the model to use. Call `/v1/models` endpoint to get the list of available models, only `automatic-speech-recognition` model type is supported.") # fmt: off
25
+
language: AudioTranscriptionLanguage=Field(default=AudioTranscriptionLanguage.EMPTY, description="The language of the output audio. If the output language is different than the audio language, the audio language will be translated into the output language. Supplying the output language in ISO-639-1 (e.g. en, fr) format will improve accuracy and latency.") # fmt: off
26
+
prompt: str|None=Field(default=None, description="An optional text to tell the model what to do with the input audio. Default is `Transcribe this audio in this language : {language}`") # fmt: off
27
+
response_format: Literal["json", "text"] =Field(default="json", description="The format of the transcript output, in one of these formats: `json` or `text`.") # fmt: off
28
+
temperature: float|None=Field(default=None, ge=0, le=1, description="The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. If set to 0, the model will use log probability to automatically increase the temperature until certain thresholds are hit.") # fmt: off
0 commit comments