VoiceRecognitionBing
This gem uses the Microsoft Bing Voice Recognition API to transcribe and synthesize voice queries.
Installation
Add this line to your application's Gemfile:
gem 'voice_recognition_bing'
And then execute:
$ bundle
Or install it yourself as:
$ gem install voice_recognition_bing
Configuration
To use this gem you need a subscription_key
for Bing Speech API that can be found for free on the Microsoft Cognitive Services website
Usage
Configure the subscription key for the gem as follows:
VoiceRecognitionBing.configure do |config|
config.subscription_key = "my subscription key"
end
To process a file the content must be stringified and a credentials object created:
credentials = VoiceRecognitionBing::Authorization.credentials
text = VoiceRecognitionBing::Service.recognize("file content", credentials)
You can find an usage example here: web api example
License
The gem is available as open source under the terms of the MIT License.