MNssSpeechItem Class Reference
The MSpeechItem class represents the speech part of a voice tag. The MSeechItem provides speech methods to the client. The methods are used by the client to request speech services from SRS
Member Functions Documentation
CancelL()
Method called by the client to cancel the previous operation.
IsPlayingSupported()
TBool
| IsPlayingSupported | ( | ) | [pure virtual] |
Playing a tag is not supported, if the recognition technology is speaker independent and speech synthesis is not present.
PartialTextL(const TDesC &)
HBufC * | PartialTextL | ( | const TDesC & | aIdentifier | ) | [pure virtual] |
Returns the part of text which identified with the given id. If RawText() is for example "_1Amy_1Harris_2mobile" then PartialText( _L( "1" ) ) call will return "Amy Harris".
Parameters
const TDesC & aIdentifier | ID of the text part to return |
PlayL(MNssPlayEventHandler *)
Method called by the client to indicate to SRS that a playback is needed.
PlayL(MNssPlayEventHandler *, TLanguage)
Method called by the client to indicate to SRS that a playback is needed with a certain language.
RawText()
TDesC & | RawText | ( | ) | [pure virtual] |
Returns the raw training text from where escape characters are not removed. Should not be used by clients who want to display the string.
RecordL(MNssTrainVoiceEventHandler *)
The Record method is used by the client to record input speech.
SetTextL(const TDesC &)
void | SetTextL | ( | const TDesC & | aText | ) | [pure virtual] |
The SetTextL method is used by the client to initialize the Text data member
Parameters
const TDesC & aText | the reference of a text buffer |
Text()
TDesC & | Text | ( | ) | [pure virtual] |
The Text member fucntion is used by the client to get text to be used in Speaker Independent voice recognition. The text can also be used to identify the voice tag, and can be used for user display by the client.
TrainTextL(MNssTrainTextEventHandler *, CNssTrainingParameters *)
Trains the speech model. The model is based on the text which was given earlier at SetTextL.
TrainVoiceL(MNssTrainVoiceEventHandler *)
Method called by the client to indicate to SRS that training is needed.
TrainedType()
The GetTrainedType member function is used by the client to get train type to be used in Speaker Independent voice recognition.
TrainingCapabilities()
The GetTrainingCapabilities member fucntion is used by the client to get training capabilities to beused in Speaker Independent voice recognition.
Member Enumerations Documentation
Enum TNssSpeechItemResult
TNssSpeechItemResult will have all the enums to represent the return values from MSpeechItem's methods.
NOTE: The caller functions should be able to handle the unknown TNssSpeechItemResult enum values.
Enumerators
EVasErrorNone | |
EVasUnexpectedRequest | |
EVasInUse | |
EVasInvalidParameter | |
EVasPlayFailed | |
EVasTrainFailed | |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.