diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2011-08-21 02:29:33 +0200 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-07-28 11:06:43 +0200 |
commit | 66a52018194861540d11e5b0815719516479d776 (patch) | |
tree | 1b02e171e2562c17fb0a31e54722515e0b76f5cc /doc | |
parent | fd2b6c1e4b99339f2d64da3c1feb09b98b37ab9f (diff) | |
download | ffmpeg-66a52018194861540d11e5b0815719516479d776.tar.gz |
lavfi: add flite audio source
Diffstat (limited to 'doc')
-rw-r--r-- | doc/filters.texi | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/doc/filters.texi b/doc/filters.texi index c93314bac6..37d9e40221 100644 --- a/doc/filters.texi +++ b/doc/filters.texi @@ -1026,6 +1026,65 @@ Channel layout of the audio data, in the form that can be accepted by All the parameters need to be explicitly defined. +@section flite + +Synthesize a voice utterance using the libflite library. + +To enable compilation of this filter you need to configure FFmpeg with +@code{--enable-libflite}. + +The source accepts parameters as a list of @var{key}=@var{value} pairs, +separated by ":". + +The description of the accepted parameters follows. + +@table @option + +@item list_voices +If set to 1, list the names of the available voices and exit +immediately. Default value is 0. + +@item nb_samples, n +Set the maximum number of samples per frame. Default value is 512. + +@item textfile +Set the filename containing the text to speak. + +@item text +Set the text to speak. + +@item voice, v +Set the voice to use for the speech synthesis. Default value is +@code{kal}. See also the @var{list_voices} option. +@end table + +@section Examples + +@itemize +@item +Read from file @file{speech.txt}, and synthetize the text using the +standard flite voice: +@example +flite=textfile=speech.txt +@end example + +@item +Read the specified text selecting the @code{slt} voice: +@example +flite=text='So fare thee well, poor devil of a Sub-Sub, whose commentator I am':voice=slt +@end example + +@item +Make @file{ffplay} speech the specified text, using @code{flite} and +the @code{lavfi} device: +@example +ffplay -f lavfi flite='No more be grieved for which that thou hast done.' +@end example +@end itemize + +For more information about libflite, check: +@url{http://www.speech.cs.cmu.edu/flite/} + @c man end AUDIO SOURCES @chapter Audio Sinks |