Skip to main content

Audio Formats & Languages

Shisa ASR accepts base64-encoded audio in several common formats and automatically identifies the spoken language across 97 languages. This page lists the supported formats, shows how to encode audio to base64, and covers language detection.

Supported audio formats

Pass raw base64-encoded audio data in the audio field. The server auto-detects the format from the binary header — you do not need to declare the format yourself.

FormatMIME typeDetection
WAVaudio/wavRIFF header
OGGaudio/oggOggS header
MP3audio/mpegID3 tag or MPEG sync bytes
FLACaudio/flacfLaC header

Encoding audio to base64

Convert any supported file to base64, then embed it directly in your request:

# Encode any supported format to base64
base64 -w0 audio.ogg # Linux
base64 -i audio.ogg # macOS

# Use in a curl request
curl -s -XPOST 'https://api.shisa.ai/asr/srt/audio_llm' \
-H 'Authorization: Bearer YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{ "audio": "'$(base64 -w0 audio.ogg)'" }'

Language detection (LID)

The API supports automatic language identification (LID) across 97 languages. When you omit the language parameter, the spoken language is detected automatically and returned in the language field of the response. To force a specific language, set language explicitly (e.g. "ja" or "en").

Primary languages

CodeLanguage
jaJapanese
enEnglish
zhChinese
All 97 supported languages
CodeLanguage
afAfrikaans
amAmharic
arArabic
asAssamese
azAzerbaijani
baBashkir
beBelarusian
bgBulgarian
bnBengali
boTibetan
brBreton
bsBosnian
caCatalan
csCzech
cyWelsh
daDanish
deGerman
elGreek
enEnglish
esSpanish
etEstonian
euBasque
faPersian
fiFinnish
foFaroese
frFrench
glGalician
guGujarati
haHausa
hawHawaiian
heHebrew
hiHindi
hrCroatian
htHaitian Creole
huHungarian
hyArmenian
idIndonesian
isIcelandic
itItalian
jaJapanese
jwJavanese
kaGeorgian
kkKazakh
kmKhmer
knKannada
koKorean
laLatin
lbLuxembourgish
lnLingala
loLao
ltLithuanian
lvLatvian
mgMalagasy
miMaori
mkMacedonian
mlMalayalam
mnMongolian
mrMarathi
msMalay
mtMaltese
myMyanmar
neNepali
nlDutch
nnNorwegian Nynorsk
noNorwegian
ocOccitan
paPunjabi
plPolish
psPashto
ptPortuguese
roRomanian
ruRussian
saSanskrit
sdSindhi
siSinhala
skSlovak
slSlovenian
snShona
soSomali
sqAlbanian
srSerbian
suSundanese
svSwedish
swSwahili
taTamil
teTelugu
tgTajik
thThai
tkTurkmen
tlTagalog
trTurkish
ttTatar
ukUkrainian
urUrdu
uzUzbek
viVietnamese
yiYiddish
yoYoruba
zhChinese

Next steps