Skip to content

Golang SDK v0.1.2

Latest
Compare
Choose a tag to compare
@nkansal96 nkansal96 released this 11 Apr 16:30

This release denotes the first release of the Golang SDK. The release versioning is kept to be in-line with the Python and other SDKs. For all 0.1.x versions, the interface will not change. Bugs will be fixed and features will be added in a backwards-compatible way. This release features the following:

  • Developer interfaces
    • aurora.Text object, for text-to-speech and interpret
    • aurora.Interpret object (as a result of calling NewText(...).interpret())
    • aurora.Speech object (as a result of calling NewText(...).speech()) which can be created from a recording or a stored audio WAV file.
      • aurora.Listen – listen once and return a Speech object
      • aurora.ContinuouslyListen – keep listening and yield Speech objects until break
      • aurora.ListenAndTranscribe – listen once, but stream audio to server while listening and continuously transcribe until stream ends; returns a Text object
      • aurora.ContinuouslyListenAndTranscribe – a combination of ContinuouslyListen and ListenAndTranscribe
  • Audio
    • audio.File class for high-level audio manipulation, recording, and playback
    • WAV processing keeps silence before recording (as the Python SDK added in v0.1.2) to prevent chopping off of audio.
  • API
    • Functions to send API requests to the backend
  • Tests
    • Work in progress, but important parts are tested

You can install this with go get -u github.com/auroraapi/aurora-go.

Documentation: godoc separates its documentation into separate packages, so unfortunately you'll have to refer to them like this:

You may need to refer the sub packages to more advanced manipulations.