Notice!
PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities.
Create your free Platform account
to download ActivePython or customize Python with the packages you require and get automatic updates.
Download
ActivePython
INSTALL>
pypm install saycloud
How to install Saycloud
- Download and install ActivePython
- Open Command Prompt
- Type
pypm install saycloud
| Python 2.7 | Python 3.2 | Python 3.3 |
---|
Windows (32-bit) | | | |
---|
Windows (64-bit) | | | |
---|
Mac OS X (10.5+) | | | |
---|
Linux (32-bit) | | | |
---|
Linux (64-bit) | | | |
---|
Lastest release
version 0.2.4 on May 21st, 2013
Saycloud is a little python script (and some ancillary helpers) that glues together text-to-speech synthesisers with Soundcloud.
Currently supported are:
- OSX's 'say'
- Google Translate TTS
You end up with something like this.
Installation
System Message: ERROR/3 (<string>, line 16)
Unknown directive type "code-block".
.. code-block:: bash
$ pip install saycloud
or
System Message: ERROR/3 (<string>, line 22)
Unknown directive type "code-block".
.. code-block:: bash
$ easy_install saycloud
Usage
System Message: ERROR/3 (<string>, line 29)
Unknown directive type "code-block".
.. code-block:: bash
$ saycloud --help
usage: saycloud [-h] [-e ENGINE] [-t TITLE] -s SAY [-v VOICE]
Saycloud - text to Soundcloud.
optional arguments:
-h, --help show this help message and exit
-e ENGINE, --engine ENGINE
The language engine to use for text to speech (default
is "say").
-t TITLE, --title TITLE
Track title (on Soundcloud)
-s SAY, --say SAY Words to say.
-v VOICE, --voice VOICE
Voice to use. Get a list for say on OSX: say -v ? or
for Google Tranlsate:
https://developers.google.com/translate/v2/using_rest
#language-params
System Message: WARNING/2 (<string>, line 49)
Explicit markup ends without a blank line; unexpected unindent.
Example
An entertaining little example to get you going:
System Message: ERROR/3 (<string>, line 54)
Unknown directive type "code-block".
.. code-block:: bash
$ saycloud -t "Test Foo Bar Baz" -v "Cellos" -s "Foo foo foo foo foo foo bar foo foo bar bar bar baz foo foo foo foo foo foo foo bar foo bar foo bar baz"
Which will run something like this the first time around:
System Message: ERROR/3 (<string>, line 61)
Unknown directive type "code-block".
.. code-block:: bash
Incorrect username/password
username: cellols
Password:
Do you want to store your Soundcloud username and password at
~/.saycloud so you don't have to enter them in future? (y/n) y
https://soundcloud.com/cellols/test-foo-bar-baz
Further reading
Google Translate has many languages/voices it can mangle your text with, some of which may just produce noise or otherwise not work.
You can see a full list of the language codes here.
By default, en is used.