Skip to content

How it Works

1. Get Your Application ID

Send email to appid@speechgrinder.com to get your Application ID.

2. Get a Session ID for your Application Client

curl -X POST -d '{"appId": "<insert application id here>", "deviceId": "<insert client id here>"}' https://api.speechgrinder.com/login
// Atte to fill in... 
// Jukka to fill in... 
// Janne to fill in... 

3. Stream Audio using the Session ID

# you'll need websocat (brew install websocat)
curl https://speechgrinder.github.io/example-audio/utterance.raw|websocat -b 'wss://api.speechgrinder.com/stream/<insert session id here>?sampleRate=16000&languageCode=en'
// Atte to fill in... 
// Jukka to fill in... 
// Janne to fill in... 

If you are curious about utterance.raw you can listen to it using the sox utility: play -r 16000 -b 16 -c 1 -e signed-integer https://speechgrinder.github.io/example-audio/utterance.raw.