Phone Notify! TextToSay Speech Control Commands

From CDYNE Wiki
Jump to: navigation, search

Back to Phone Notify!

Contents

How to use Speech Control Commands

Use the examples below as a part of the text to speech string. You can use an unlimited amount of commands with in a single text to speech string.

Inserting Silence/Pauses

This is not <break strength='none' /> a pause.
This is a <break strength='x-weak' /> phrase break. 
This is a <break strength='weak' /> phrase break. 
This is a <break strength='medium' /> sentence break. 
This is a <break strength='strong' /> paragraph break. 
This is a <break strength='x-strong' /> paragraph break. 
This is a <break time='3s' /> three second pause. 
This is a <break time='4500ms' /> 4.5 second pause. 
This is a <break /> sentence break.

Changing Voices

This is the default voice. <voice name="David">This is David.</voice> This is the default again. <voice name="Callie">Callie here.</voice>

Available Voices

getVoices API method - View available voices with API call.

Adjusting Speech Rate

I am now <prosody rate='x-slow'>speaking at half speed.</prosody> 
I am now <prosody rate='slow'>speaking at 2/3 speed.</prosody> 
I am now <prosody rate='medium'>speaking at normal speed.</prosody> 
I am now <prosody rate='fast'>speaking 33% faster.</prosody> 
I am now <prosody rate='x-fast'>speaking twice as fast</prosody> 
I am now <prosody rate='default'>speaking at normal speed.</prosody> 
I am now <prosody rate='.42'>speaking at 42% of normal speed.</prosody> 
I am now <prosody rate='2.8'>speaking 2.8 times as fast</prosody> 
I am now <prosody rate='-0.3'>speaking 30% more slowly.</prosody> 
I am now <prosody rate='+0.3'>speaking 30% faster.</prosody>

Adjusting Voice Pitch

Cepstral Voices

<prosody pitch='x-low'>This is half-pitch</prosody> 
<prosody pitch='low'>This is 3/4 pitch.</prosody> 
<prosody pitch='medium'>This is normal pitch.</prosody> 
<prosody pitch='high'>This is twice as high.</prosody> 
<prosody pitch='x-high'>This is three times as high.</prosody> 
<prosody pitch='default'>This is normal pitch.</prosody> 
<prosody pitch='-50%'>This is 50% lower.</prosody> 
<prosody pitch='+50%'>This is 50% higher.</prosody> 
<prosody pitch='-6st'>This is six semitones lower.</prosody> 
<prosody pitch='+6st'>This is six semitones higher.</prosody> 
<prosody pitch='-25Hz'>This has a pitch mean 25 Hertz lower.</prosody> 
<prosody pitch='+25Hz'>This has a pitch mean 25 Hertz higher.</prosody> 
<prosody pitch='75Hz'>This has a pitch mean of 75 Hertz.</prosody>

NeoSpeech Voices

<prosody pitch='x-low'>This is half-pitch</prosody> 
<prosody pitch='low'>This is 3/4 pitch.</prosody> 
<prosody pitch='medium'>This is normal pitch.</prosody> 
<prosody pitch='high'>This is twice as high.</prosody> 
<prosody pitch='x-high'>This is three times as high.</prosody> 
<prosody pitch='default'>This is normal pitch.</prosody>

Adjusting Output Volume

<prosody volume='silent'>This is silent.</prosody> 
<prosody volume='x-soft'>This is 25% as loud.</prosody> 
<prosody volume='soft'>This is 50% as loud.</prosody> 
<prosody volume='medium'>This is the default volume.</prosody> 
<prosody volume='loud'>This is 50% louder.</prosody> 
<prosody volume='x-loud'>This is 100% louder.</prosody> 
<prosody volume='default'>This is the default volume.</prosody> 
<prosody volume='-33%'>This is 33% softer.</prosody> 
<prosody volume='+33%'>This is 33% louder.</prosody> 
<prosody volume='33%'>This is 33% louder.</prosody> 
<prosody volume='33'>This is 33% of normal volume.</prosody> 

Adding Emphasis to Speech

This is <emphasis level='strong'>stronger</emphasis> than the rest.
This is <emphasis level='moderate'>stronger</emphasis> than the rest.
This is <emphasis level='none'>the same as</emphasis> than the rest.

Speaking Words Phonetically

Cepstral Voices

You say <phoneme ph='t ah0 m ey1 t ow0'>tomato</phoneme>, I say <phoneme ph='t ah0 m aa1 t ow0'>tomato</phoneme>

NeoSpeech Voices

You say <phoneme alphabet='ipa' ph='&#116;&#111;&#119;&#109;&#97;&#121;&#116;&#111;&#119;'> tomato </phoneme>, I say <phoneme alphabet='ipa' ph='&#116;&#111;&#109;&#97;&#116;&#111;'> tomato </phoneme>

Please note ASCII characters will need to be provided when using the <phoneme> tag with NeoSpeech voices.

Say-As

Date
<say-as format="mdy" interpret-as="date">1/5/2009</say-as>
Digits
<say-as type="number:digits">[zipcode]</say-as></
Personal tools
Namespaces

Variants
Actions
Navigation
Tools

Trial Key