This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description
# stt-watson
Continuous speech to text using watson in python with websocket and record from microphone

## Requirements

- **Python 2.7**
- **Pip**
- **portaudio**, can be installed with `brew install portaudio` (mac) or `apt-get install portaudio19-dev`(linux)

## Installation

Install with pip: `pip install stt-watson`

## Run the playground

Simply run in command line: `stt-watson`

**At the first launch it will create a config file located to `~/.config-stt-watson.yml` and ask you your watson credentials**

## Usage for developers

Bootstrap example:

```python
from stt_watson.SttWatson import SttWatson
from stt_watson.SttWatsonAbstractListener import SttWatsonAbstractListener

"""
Example of listener to use data given by stt-watson (stt-watson notify hypothesis to his listeners when he receive it)

Hypothesis format:
{
'confidence': '0.1' // confidence of the sentence or words if exist
'transcript': 'the transcription of your voice'
}
"""
class MyListener(SttWatsonAbstractListener):
def __init__(self):
pass
"""
This give hypothesis from watson when your sentence is finished
"""
def listenHypothesis(self, hypothesis):
print "Hypothesis: {0}".format(hypothesis)

"""
This give the json received from watson
"""
def listenPayload(self, payload):
print(u"Text message received: {0}".format(payload))
"""
This give hypothesis from watson when your sentence is not finished
"""
def listenInterimHypothesis(self, interimHypothesis):
print "Interim hypothesis: {0}".format(interimHypothesis)


myListener = MyListener()
sttWatson = SttWatson('watson_user', 'watson_password')
sttWatson.addListener(myListener)
sttWatson.run()
```
Release History

Release History

1.0.3

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

1.0.1

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
stt_watson-1.0.3-py2.py3-none-any.whl (14.8 kB) Copy SHA256 Checksum SHA256 py2.py3 Wheel Jan 29, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting