No Description

jjorgeDSIC a8717f3354 Minor changes in README 3 years ago
python_examples 20fdcc398c Fixing mic example, checking if there is a Spanish system deployed 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 a188d1bd44 First commit, examples in Python included 3 years ago
README.md a8717f3354 Minor changes in README 3 years ago
requirements.txt a188d1bd44 First commit, examples in Python included 3 years ago

README.md

Streaming API example 1.0

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

Setup and installation

System dependencies:

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

Installation

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

#Activate environment
source env/bin/activate

#Install requirements
pip install -r requirements.txt

#Download & Install Streaming client library
wget https://ttp.mllp.upv.es/mllp-streaming-api/MLLPStreamingClient_mllp-1.0.0-py3-none-any.whl
pip install MLLPStreamingClient_mllp-1.0.0-py3-none-any.whl

Examples

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 ttp.mllp.upv.es:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > ttp.mllp.upv.es.crt

To run the examples:

#Activate the environment
sourve env/bin/activate

#Sending WAV file
python3 python_examples/client.short.wav.py wav_example/AAFA0016.wav

#Sending audio from mic
python3 python_examples/client.mic.py

Detailed documentation (login required):

Contact and support

mail: mllp-support@upv.es