Create Audio Transcriptions
curl --request POST \
--url https://api.siliconflow.com/v1/audio/transcriptions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file=@example-file \
--form model=FunAudioLLM/SenseVoiceSmallimport requests
url = "https://api.siliconflow.com/v1/audio/transcriptions"
files = { "file": ("example-file", open("example-file", "rb")) }
payload = { "model": "FunAudioLLM/SenseVoiceSmall" }
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('file', '/path/to/file/audio.mp3');
form.append('model', 'FunAudioLLM/SenseVoiceSmall');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://api.siliconflow.com/v1/audio/transcriptions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"text": "<string>"
}"<string>""<string>""<string>""<string>""<string>""<string>"Audio
Create transcription
Creates an audio transcription.
POST
/
audio
/
transcriptions
Create Audio Transcriptions
curl --request POST \
--url https://api.siliconflow.com/v1/audio/transcriptions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form file=@example-file \
--form model=FunAudioLLM/SenseVoiceSmallimport requests
url = "https://api.siliconflow.com/v1/audio/transcriptions"
files = { "file": ("example-file", open("example-file", "rb")) }
payload = { "model": "FunAudioLLM/SenseVoiceSmall" }
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('file', '/path/to/file/audio.mp3');
form.append('model', 'FunAudioLLM/SenseVoiceSmall');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://api.siliconflow.com/v1/audio/transcriptions', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"text": "<string>"
}"<string>""<string>""<string>""<string>""<string>""<string>"Body
multipart/form-data
Corresponding Model Name. To better enhance service quality, we will make periodic changes to the models provided by this service, including but not limited to model on/offlining and adjustments to model service capabilities. We will notify you of such changes through appropriate means such as announcements or message pushes where feasible.
Available options:
FunAudioLLM/SenseVoiceSmall, TeleAI/TeleSpeechASR Example:
"FunAudioLLM/SenseVoiceSmall"