How do I manage text-to-speech markup with Microsoft Speech Platform?
Last reviewed: 3/1/2012
HOW Article ID: H031205
The information in this article applies to:
- VoiceMarkupKit 4
Summary
VoiceMarkupKit 4 provides support for Microsoft Speech Platform.
More Information
Chant VoiceMarkupKit 4 provides support for generating SAPI 5 XML and W3C SSML text-to-speech markup for Microsoft Speech Platform voices.
Both 32-bit and 64-bit applications can generate text-to-speech markup for Microsoft Speech Platform voices. The 32-bit Microsoft Speech Platform runtime must be installed to support 32-bit applications. The 64-bit Microsoft Speech Platform runtime must be installed to support 64-bit applications.
All current Microsoft Speech Platform versions are supported: v10.0, v10.1, v10.2 and v11.0. Only one version may be installed at a time. The runtimes and voices can be downloaded from Microsoft:
- Microsoft Speech Platform v10.0 Runtimes
- Microsoft Speech Platform v10.0 Voices
- Microsoft Speech Platform v10.1 Runtimes
- Microsoft Speech Platform v10.1 Voices
- Microsoft Speech Platform v10.2 Runtimes
- Microsoft Speech Platform v10.2 Voices
- Microsoft Speech Platform v11.0 Runtimes
- Microsoft Speech Platform v11.0 Voices
The voice for which to generate text-to-speech markup can be selected by setting the CSPEngine property to voice name or by setting the CNPEngineAPI value to CEMSPTTS.
private Chant.VoiceMarkupKit.NChantVM NChantVM1;
// Instantiate NChantVM object
NChantVM1 = new NChantVM(this);
string markup = NChantVM1.GenerateMarkup(ChantVoiceMarkupLanguage.CVMLSAPI5SSML, ChantVoiceMarkupTag.CVMTRate, "", "5", "This text is spoken above the baseline at rate of five");
CChantVM* m_pChantVM; // ChantVM object
// Instantiate ChantVM object
m_pChantVM = new CChantVM();
wchar_t* markup = pChantVM1->GenerateMarkup(CVMLSAPI5SSML, CVMTRate, L"", L"5", L"This text is spoken above the baseline at rate of five");
CChantVM* ChantVM1; // ChantVM object
// Instantiate ChantVM object
ChantVM1 = new CChantVM();
string markup = pChantVM1->GenerateMarkup(CVMLSAPI5SSML, CVMTRate, "", "5", "This text is spoken above the baseline at rate of five");
var
ChantVM1: TChantVM;
markup: string;
begin
// Instantiate ChantVM object
ChantVM1 := TChantVM.Create();
markup = NChantVM1.GenerateMarkup(CVMLSAPI5SSML, CVMTRate, '', '5', 'This text is spoken above the baseline at rate of five');
end;
private JChantVM JChantVM1;
// Instantiate ChantVM object
JChantVM1 = new JChantVM();
string markup = JChantVM1.generateMarkup(ChantVoiceMarkupLanguage.CVMLSAPI5SSML, ChantVoiceMarkupTag.CVMTRate, "", "5", "This text is spoken above the baseline at rate of five");
WChantVM1.SetNumberProperty(CNPEngineAPI, CEMSPTTS);
var markup = WChantVM1.GenerateMarkup(CVMLSAPI5SSML, CVMTRate, "", "5", "This text is spoken above the baseline at rate of five");
Dim WithEvents XChantVM1 As XChantVM
Dim markup as String
markup = XChantVM1.GenerateMarkup(CVMLSAPI5SSML, CVMTRate, "", "5", "This text is spoken above the baseline at rate of five")
Dim WithEvents NChantVM1 As NChantVM
Dim markup as String
' Instantiate ChantVM object
NChantVM1 = New NChantVM(Me)
markup = NChantVM1.GenerateMarkup(ChantVoiceMarkupLanguage.CVMLSAPI5SSML, ChantVoiceMarkupTag.CVMTRate, "", "5", "This text is spoken above the baseline at rate of five")