Microphone in the browser using WebRTC and WebSockets
The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:
(Source code: https://github.com/wit-ai/house)
Here are the methods available on the Microphone object
You know how to create the microphone. See quickstart.md for instructions on how to create your microphone.
connect the microphone to the Wit instance identified by the token
start streaming audio to the Wit instance (also achieved by clicking on the microphone element on the page)
stop recording audio (also achieved by clicking on the microphone element on the page). Wit will send a response, received via the
call the given callback when the microphone is ready to record
call the given callback when a response is received from the instance. The callback function takes two arguments: a string corresponding to the detected intent, and a list of entity objects.
call the given callback whenever an error occurs. An error string is passed to the callback function.
call the given callback when the recording starts.
call the given callback when the recording stops
call the given callback when Microphone is waiting for the server to reply or for the user to allow access to her microphone.
call the given callback when the connection is closed by the server or the client.
# bump version in microphone.coffee # bump version in bower.json ./release.sh
The license for microphone can be found in LICENSE file in the root directory of this source tree.