音频转文本,支持开发者上传音频文件,获取音频文件对应的文本内容。Documentation Index
Fetch the complete documentation index at: https://platform.stepfun.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
请求地址
POST https://api.stepfun.com/v1/audio/transcriptions
请求参数
-
modelstringrequired
需要使用的模型名称,固定为step-asr -
response_formatstringrequired
输出的文件格式。 - 支持json、text -
fileFilerequired
音频文件- 支持格式: mp3, pcm, ogg, wav
- 文件大小限制:小于 100MB
- 支持格式: mp3, pcm, ogg, wav
-
hotwordsstringoptional
热词列表,JSON String 格式,需要为可解析的 JSON List。如["1","2","3","4","abc"]
请求响应
根据response_format,返回对应格式的内容
- json
- text
textstring
识别所得文字
示例
- curl