Skip to content

Gem that allows to convert spoken audio to text using Bing Speech Recognition API

License

Notifications You must be signed in to change notification settings

elmendalerenda/voice_recognition_bing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Build Status

About

Gem that allows to convert spoken audio to text using Bing Speech Recognition API

Resources

License

Stars

Watchers

Forks

Packages

No packages published