How do I speak and listen with Microsoft Speech Platform?

Last reviewed: 3/1/2012

HOW Article ID: H031204

The information in this article applies to:

  • SpeechKit 7

Summary

SpeechKit 7 provides support for Microsoft Speech Platform.

More Information

Chant SpeechKit 7 provides support for recognizing and synthesizing with Microsoft Speech Platform recognizers and voices.

Both 32-bit and 64-bit applications can recognize and synthesize Microsoft Speech Platform recognizers and 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, recognizers, and voices can be downloaded from Microsoft:

The recognizer can be selected by setting the CSPEngine property to recognizer name or by setting the CNPEngineAPI value to CEMSPSR. The voice can be selected by setting the CSPEngine property to voice name or by setting the CNPEngineAPI value to CEMSPTTS.


private Chant.SpeechKit.NChantSR NChantSR1;
private Chant.SpeechKit.NChantTTS NChantTTS1;

// Instantiate NChantSR object
NChantSR1 = new NChantSR(this);
NChantSR1.SetNumberProperty(ChantNumberProperty.CNPEngineAPI, (int)ChantEngineAPI.CEMSPSR);

// Instantiate NChantTTS object
NChantTTS1 = new NChantTTS(this);
NChantTTS1.SetNumberProperty(ChantNumberProperty.CNPEngineAPI, (int)ChantEngineAPI.CEMSPTTS);
    

CChantSR* m_pChantSR;  // ChantSR object
CChantTTS* m_pChantTTS;  // ChantTTS object

// Instantiate ChantSR object
m_pChantSR = new CChantSR();
m_pChantSR->SetNumberProperty(CNPEngineAPI, CEMSPSR);

// Instantiate ChantTTS object
m_pChantSR = new CChantTTS();
m_pChantSR->SetNumberProperty(CNPEngineAPI, CEMSPTTS);
    

CChantSR* ChantSR1;  // ChantSR object
CChantTTS* ChantTTS1;  // ChantTTS object

// Instantiate ChantSR object
ChantSR1 = new CChantSR();
ChantSR1->SetNumberProperty(CNPEngineAPI, CEMSPSR);

// Instantiate ChantTTS object
ChantTTS1 = new CChantTTS();
ChantTTS1->SetNumberProperty(CNPEngineAPI, CEMSPTTS);
    

var
ChantSR1: TChantSR;
ChantTTS1: TChantTTS;
begin
// Instantiate ChantSR object
ChantSR1 := TChantSR.Create();
ChantSR1.SetNumberProperty(CNPEngineAPI, CEMSPSR);

// Instantiate ChantTTS object
ChantTTS1 := TChantTTS.Create();
ChantTTS1.SetNumberProperty(CNPEngineAPI, CEMSPTTS);
end;
    

private JChantSR JChantSR1;
private JChantTTS JChantTTS1;

// Instantiate ChantSR object
JChantSR1 = new JChantSR();
JChantSR1.setNumberProperty(ChantNumberProperty.CNPEngineAPI, ChantEngineAPI.CEMSPSR);

// Instantiate ChantTTS object
JChantTTS1 = new JChantTTS();
JChantTTS1.setNumberProperty(ChantNumberProperty.CNPEngineAPI, ChantEngineAPI.CEMSPTTS);
    

WChantSR1.SetNumberProperty(CNPEngineAPI, CEMSPSR);

WChantTTS1.SetNumberProperty(CNPEngineAPI, CEMSPTTS);
    

Dim WithEvents XChantSR1 As XChantSR
Dim WithEvents XChantTTS1 As XChantTTS

XChantSR1.SetNumberProperty CNPEngineAPI, CEMSPSR

XChantTTS1.SetNumberProperty CNPEngineAPI, CEMSPTTS
    

Dim WithEvents NChantSR1 As NChantSR
Dim WithEvents NChantTTS1 As NChantTTS

' Instantiate ChantSR object
NChantSR1 = New NChantSR(Me)
NChantSR1.SetNumberProperty(ChantNumberProperty.CNPEngineAPI, ChantEngineAPI.CEMSPSR)

' Instantiate ChantTTS object
NChantTTS1 = New NChantSR(Me)
NChantTTS1.SetNumberProperty(ChantNumberProperty.CNPEngineAPI, ChantEngineAPI.CEMSPTTS)