cURL
curl --request POST \ --url https://api.spikelabs.com/v1/voice/recognize \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: multipart/form-data' \ --form audio='@example-file' \ --form language=en \ --form 'prompt=<string>'
{ "text": "<string>", "language": "<string>", "duration": 123, "words": [ { "word": "<string>", "start": 123, "end": 123, "confidence": 123 } ] }
Convert speech audio to text.
API key authentication. Use your secret key (starts with sk_) as a Bearer token.
sk_
Audio file (mp3, wav, webm, ogg)
Language code (e.g., 'en', 'es')
Optional context to improve recognition
Transcription result
Transcribed text
Detected language code
Audio duration in seconds
Show child attributes