A Java implementation of the Bing Speech to Text API websocket protocol (supporting article).
Run a demo via:
# set up all the requisite environment variables
export OXFORD_SPEECH_TOKEN="..."
# stream the audio and transcribe
sbt "runMain SpeechToTextWebsocketsDemo examples/data/batman.wav"
sbt "runMain SpeechToTextWebsocketsDemo examples/data/hall.mp3"
sbt "runMain SpeechToTextWebsocketsDemo http://bbcwssc.ic.llnwd.net/stream/bbcwssc_mp1_ws-einws en-US .mp3"
If you're consuming the library via Maven, make sure to also add the Tritonus (PCM audio conversion) jars to the classpath:
- Configure your credentials via the
SONATYPE_USER
andSONATYPE_PASSWORD
environment variables. - Update
version.sbt
- Enter the SBT shell:
sbt
- Run
sonatypeOpen "enter staging description here"
- Run
publishSigned
- Run
sonatypeRelease