Skip to content
master
Switch branches/tags
Code
This branch is 4 commits ahead, 5 commits behind IBM/watson-streaming-stt:master.
Contribute

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

Keyword Counter using Watson Streaming Speech to Text

This program converts speech to text then count how many times the keyword or the key sentence appears in a speech via IBM Cloud Speech to Text API.

The readers are first refered to the README of Watson Streaming Speech to Text, an example of using Watson to real time transcribe from Speech to Text using the websockets streaming API.

Configuration

The keyword is configurable in speech.cfg as well as the credentials.

Expected Output

'-t' option is for a timeout value. When the keyword is found, the system repeats the keyword by using 'say' command. Note that if IBM Cloud Speech to Text recognizes the 'say' command speech correctly, the system 'say's the keyword again; then it repeats to 'say' forever.

% python3 ./stt-keyword-counter.py -t 10
 * recording
 you know!
 you know!
 * done recording
 Recognized text is 'you know I have opinions you know I have a couple you now you now '
 2 'you know' have been found!!

IBM Cloud Speech to Text recognizes 'you know' of 'say' command as 'you now' hence the system does not repeat to 'say'.

About

Speech Keyword Counter using Watson's Streaming Speech to Text websockets interface for real time transcription. Written in Python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages