Swift
Created by: shaneyoung,Last modification on Tue 12 of Feb, 2008 [14:19 UTC] by JustRumours
Swift from Cepstral
Swift can be used to create audio files from text (Text to speech). It's fairly fast and can easily be called from an AGI for on-the-fly text to speech (such as a weather report) or can be used to create static files while an application is in development.
To synthesize text from the command line:
swift -o /tmp/greeting.wav -p audio/channels=1,audio/sampling-rate=8000 "Welcome to asterisk."
To synthesize text from a text file
swift -p audio/channels=1,audio/sampling-rate=8000 -o /tmp/weather.wav -f /tmp/weather.txt
If you recently purchased a copy of swift from Cepstral, you may have a version which has some issues. See Changelog below.
Swift CHANGES
4.0.1 - January 31, 2006New Features:
- 'swift -t' shows each sentence at the time it is played. This is very
- New additional parameters to 'swift --register' and 'swift --reg-ports'
with a single command using arguments. Run 'swift --help' for more
information and examples.
- 'swift --say-pgm-version' speaks version information.
- 'swift --say-voice-version' speaks name, language, and version of
to set voice.
- 'swift --say-all-voices' lists and speaks names, languages, and
- Multiple text arguments are concatenated and spoken as one utterance.
swift -n David "Hello, how are you?"
swift -n David Hello, how are you?
Whereas before, the latter command would make four seperate calls to
synthesize each word seperately.
Enhancements:
- 'swift --help' now shows a much more readable help message, and
- When synthesizing text from standard input by using 'swift -f -', you
utive newline characters.
- Improved output messages for errors, warnings, and other engine output
Bug Fixes:
- FIXED: Input text starting with a hyphen is treated as a parameter
print out the Usage string, as if you've entered an invalid switch.
NOTE: To signify the end of options, use "--" by itself. For instance:
./swift -n William --events — "--The Raven" -o hello.wav
Will speak, "The Raven, Oh Hello dot wav" in Williams voice and
will *not* create a wave file (the -o argument being treated as
input text).
3.5.0 - November 30, 2005
New Features:
- 'swift --voices' now shows information about the software in addition
3.4.2 - September 19, 2005
- No Changes
3.4.1 - September 2, 2005
- No Changes
3.4.0 - August 18, 2005
- No Changes
3.3.3 - August 5, 2005
- No Changes
3.3.2 - July 28, 2005
- No Changes
3.3.1 - July 12, 2005
Bug Fixes:
- FIXED: Setting swift.exe into phone mode and asking for event
- FIXED: 'swift -V' shows no lexicon information
3.3.0 - June 15, 2005
Bug Fixes:
- FIXED: swift -m wave fails with an invalid NULL param error.
- FIXED: Command-line swift will fail to play sound (wav, aiff) files
New Features:
- If -m switch or text/content-type param isn't set, command-line swift
For instance:
'swift -f myWave1.wav myTextFile.txt myWave2.wav'
Will play the two wave files and synthesize the text in the text file.
3.2.1 - April 01, 2005
- No Changes
3.2.0 - March 14, 2005
- swift --events now shows event information in a nicely formatted table.
3.1.1 - January 19, 2005
- No Changes
3.1.0 - December 13, 2004
New Features:
- Defaults to SSML mode for text parsing.
- Save-as-wave can now be done via '-o filename' switch (No longer need
- '-f' switch can be used to specify multiple input files, by making a
swift -f file1.txt file2.txt file3.txt
- Ability to enter port license information.
- Ability to have a phoneme list as input by specifying '-m phones'.
- '-x' switch for loading a sound effects file (.sfx).
- Can use '--register' switch with '-n voice' or with '-d directory'.
Bug Fixes:
- SSML support now working. No longer crashes when making this call:
- '-f filename' switch now works correctly when given with other switches
- Now provides feedback if the file given in '-f filename' switch cannot
- 'swift --voices' now prints a much nicer table of all installed voices
- 'swift -V' now shows engine version number.
- If 'swift -o filename' fails to write the wave file for any reason, it
- An error is displayed if license file can't be written during
- Results of 'swift --params' have been checked and all options listed
- 'swift -p audio/encoding=ulaw,alaw,pcm8' work now.
3.0.3 - September 30, 2004 Linux only
New Features:
* '-f' switch can be used to specify multiple input files, by making a
call like this:
swift -f file1.txt file2.txt file3.txt
* Can use '--register' switch with '-n voice' or with '-d directory'.
Bug Fixes:
* '-f filename' switch now works correctly when
given with other switches.
3.0.2 - September 13, 2004
- Initial Linux release.
3.0.0 - June 1, 2004
- Initial Release, bunded with 3.0.0 voices


Comments