Skip to content

Instantly share code, notes, and snippets.

View efreeman's full-sized avatar

Euan Freeman efreeman

View GitHub Profile
@efreeman
efreeman / CereCloudPlayer.java
Created January 14, 2015 20:53
An Android class for streaming synthesised voice using the CereVoice Cloud SDK. The play method starts an AsyncTask which requests and downloads the synthesised voice; upon completion, it starts another AsyncTask to play the sound in the background.
package uk.co.euanfreeman.speek.voice;
import android.content.Context;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.AsyncTask;
import android.util.Log;
import android.util.Xml;
import org.xmlpull.v1.XmlPullParser;
@efreeman
efreeman / cerevoice_downloader.py
Last active May 16, 2018 06:31
A Python script for downloading synthesised speech using the CereVoice Cloud SDK.
"""
This script uses the CereProc Cloud API to create and
download synthesised voice audio files.
See http://euanfreeman.co.uk/synthesising-speech-in-python/
"""
from suds.client import Client
import urllib