No Description

Gonçal V. Garcés Díaz-Munío 77e54d0ac5 Minor fix 11 months ago
python_examples a2fccd170f Fixing mic example 3 years ago
wav_example a188d1bd44 First commit, examples in Python included 3 years ago
LICENSE ac69f6293b Initial commit 3 years ago
MLLPStreamingClient_mllp-1.0.0-py3-none-any.whl 5c4f57932b Client Wheel updated 3 years ago
MLLPStreamingClient_mllp-1.1.0-py3-none-any.whl 77fb701150 Added MLLPStreamingClient_mllp-1.1.0-py3-none-any.whl 11 months ago 77e54d0ac5 Minor fix 11 months ago
requirements.txt a188d1bd44 First commit, examples in Python included 3 years ago

MLLP Streaming API example

This repository contains some examples of client code to use the MLLP Streaming Speech Recognition API

Setup and installation

Streaming API example, tested in Ubuntu 16.04 and Python3.6

System dependencies:

sudo apt install libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0 ffmpeg libav-tools


#Prepare virtual environment
virtualenv env --python=/path/to/python3.6 env

#Activate environment
source env/bin/activate

#Install requirements
pip install -r requirements.txt

#Install Streaming client library
pip install MLLPStreamingClient_mllp-1.0.0-py3-none-any.whl


Replace this lines in the examples with your credentials and server information:

server_hostname = "<SERVER_ADDRESS>"
server_port = "<PORT>"
api_user = "<YOU_API_USER>"
api_secret = "<YOUR_API_KEY>"
server_ssl_cert_file = "<CRT_FILE>"

To get the server SSL cert, use this commands:

apt-get install openssl
echo -n | openssl s_client -connect | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' >

To run the examples:

#Activate the environment
source env/bin/activate

#Sending WAV file
python3 python_examples/ wav_example/AAFA0016.wav

#Sending audio from mic
python3 python_examples/

Detailed documentation (login required):

Contact and support