/SpeechToText-WebSockets-Java

SDK & Sample to do speech recognition using websockets in Java

Primary LanguageJavaMIT LicenseMIT

A Java implementation of the Bing Speech to Text API websocket protocol (supporting article).

Travis CI status

Usage example

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:

Release process

  1. Configure your credentials via the SONATYPE_USER and SONATYPE_PASSWORD environment variables.
  2. Update version.sbt
  3. Enter the SBT shell: sbt
  4. Run sonatypeOpen "enter staging description here"
  5. Run publishSigned
  6. Run sonatypeRelease

Other implementations