4 <name>Tizen.Uix.TtsEngine</name>
7 <member name="T:Interop">
15 <member name="T:Interop.Libraries">
17 Partial Libraries Class
20 <member name="T:Interop.TtsEngine">
22 TtsEngine Interop Class
25 <!-- Badly formed XML comment ignored for member "F:Interop.TtsEngine.ErrorCode.OutOfMemory" -->
26 <!-- Badly formed XML comment ignored for member "F:Interop.TtsEngine.ErrorCode.IoError" -->
27 <!-- Badly formed XML comment ignored for member "F:Interop.TtsEngine.ErrorCode.InvalidParameter" -->
28 <!-- Badly formed XML comment ignored for member "F:Interop.TtsEngine.ErrorCode.NetworkDown" -->
29 <!-- Badly formed XML comment ignored for member "F:Interop.TtsEngine.ErrorCode.PermissionDenied" -->
30 <!-- Badly formed XML comment ignored for member "F:Interop.TtsEngine.ErrorCode.InvalidState" -->
31 <!-- Badly formed XML comment ignored for member "F:Interop.TtsEngine.ErrorCode.InvalidVoice" -->
32 <!-- Badly formed XML comment ignored for member "F:Interop.TtsEngine.ErrorCode.OperationFailed" -->
33 <!-- Badly formed XML comment ignored for member "F:Interop.TtsEngine.ErrorCode.NotSupportedFeature" -->
34 <!-- Badly formed XML comment ignored for member "F:Interop.TtsEngine.ErrorCode.NotSupported" -->
35 <member name="T:Tizen.Uix.TtsEngine.AudioType">
37 Enumeration for audio type.
40 <member name="F:Tizen.Uix.TtsEngine.AudioType.RawS16">
42 Signed 16-bit audio type
45 <member name="F:Tizen.Uix.TtsEngine.AudioType.RawU8">
47 Unsigned 8-bit audio type
50 <member name="F:Tizen.Uix.TtsEngine.AudioType.Max">
55 <member name="T:Tizen.Uix.TtsEngine.ResultEvent">
57 Enumeration for result.
60 <member name="F:Tizen.Uix.TtsEngine.ResultEvent.Fail">
62 Event when the voice synthesis is failed
65 <member name="F:Tizen.Uix.TtsEngine.ResultEvent.Start">
67 Event when the sound data is first data by callback function
70 <member name="F:Tizen.Uix.TtsEngine.ResultEvent.Continue">
72 Event when the next sound data exist, not first and not last
75 <member name="F:Tizen.Uix.TtsEngine.ResultEvent.Finish">
77 Event when the sound data is last data or sound data is only one result
80 <member name="T:Tizen.Uix.TtsEngine.VoiceType">
82 Enumeration for Voice Type
85 <member name="F:Tizen.Uix.TtsEngine.VoiceType.Male">
90 <member name="F:Tizen.Uix.TtsEngine.VoiceType.Female">
95 <member name="F:Tizen.Uix.TtsEngine.VoiceType.Child">
100 <member name="T:Tizen.Uix.TtsEngine.Error">
102 Enum for Error values that can occur
105 <member name="F:Tizen.Uix.TtsEngine.Error.None">
110 <member name="F:Tizen.Uix.TtsEngine.Error.OutOfMemory">
115 <member name="F:Tizen.Uix.TtsEngine.Error.IoError">
120 <member name="F:Tizen.Uix.TtsEngine.Error.InvalidParameter">
125 <member name="F:Tizen.Uix.TtsEngine.Error.NetworkDown">
127 Network down(Out of network)
130 <member name="F:Tizen.Uix.TtsEngine.Error.InvalidState">
135 <member name="F:Tizen.Uix.TtsEngine.Error.InvalidVoice">
140 <member name="F:Tizen.Uix.TtsEngine.Error.OperationFailed">
145 <member name="F:Tizen.Uix.TtsEngine.Error.NotSupportedFeature">
147 Not supported feature of current engine
150 <member name="F:Tizen.Uix.TtsEngine.Error.NotSupported">
155 <member name="F:Tizen.Uix.TtsEngine.Error.PermissionDenied">
160 <member name="T:Tizen.Uix.TtsEngine.Engine">
162 This Class represents the Tts Engine which has to be inherited to make the engine.
165 <member name="T:Tizen.Uix.TtsEngine.Engine.Action`1">
167 An Action with 2 Input Parameter returning a Error
169 <typeparam name="T">Generic Type for Parameter 1</typeparam>
170 <param name="a">The Input Parameter 1</param>
171 <param name="b">The Input Parameter 2</param>
172 <returns>Error Value</returns>
174 <member name="T:Tizen.Uix.TtsEngine.Engine.OutAction`1">
176 An Action with 2 Out Parameter returning a Error
178 <typeparam name="T">Generic Type for Parameter 1</typeparam>
179 <param name="a">The Input Parameter 1</param>
180 <param name="b">The Input Parameter 2</param>
181 <returns>Error Value</returns>
183 <member name="T:Tizen.Uix.TtsEngine.Engine.SupportedVoice">
185 Called when TTS engine informs the engine service user about whole supported language and voice type list.
186 This callback function is implemented by the engine service user.Therefore, the engine developer does NOT have to implement this callback function.
189 This callback function is called by ForEachSupportedVoices() to inform the whole supported voice list. userData must be transferred from ForEachSupportedVoices().
191 <param name="language">The language is specified as an ISO 3166 alpha-2 two-letter country code followed by ISO 639-1 for the two-letter language code.
192 For example, "ko_KR" for Korean, "en_US" for American English</param>
193 <param name="type">The voice type</param>
194 <param name="userData">The user data passed from ForEachSupportedVoices()</param>
195 <returns>true to continue with the next iteration of the loop false to break out of the loop</returns>
196 <precondition>ForEachSupportedVoices() will invoke this callback function.</precondition>
198 <member name="M:Tizen.Uix.TtsEngine.Engine.StartSynthesis(System.String,System.Int32,System.String,System.Int32,System.String,System.String,System.IntPtr)">
200 Called when the engine service user starts to synthesize a voice, asynchronously.
203 In this callback function, TTS engine must transfer the synthesized result to the engine service user using SendResult().
204 Also, if TTS engine needs the application's credential, it can set the credential granted to the application.
206 <param name="language">The language is specified as an ISO 3166 alpha-2 two-letter country code followed by ISO 639-1 for the two-letter language code.
207 For example, "ko_KR" for Korean, "en_US" for American English</param>
208 <param name="type">The voice type</param>
209 <param name="text">Texts</param>
210 <param name="speed">The speed of speaking</param>
211 <param name="appid">The Application ID</param>
212 <param name="credential">The credential granted to the application</param>
213 <param name="userData">The user data which must be passed to SendResult() function</param>
215 Following Error Codes can be returned
224 <postcondition>This function invokes SendResult()</postcondition>
226 <member name="M:Tizen.Uix.TtsEngine.Engine.GetInformation(System.String@,System.String@,System.String@,System.Boolean@)">
228 Called when the engine service user requests the basic information of TTS engine.
231 The allocated engineUuid, engineName, and engineSetting will be released internally.
232 In order to upload the engine at Tizen Appstore, both a service app and a ui app are necessary.
233 Therefore, engineSetting must be transferred to the engine service user.
235 <param name="engineUuid">UUID of engine</param>
236 <param name="engineName">Name of engine</param>
237 <param name="engineSetting">The engine setting application(ui app)'s app ID</param>
238 <param name="useNetwork">The status for using network</param>
240 Following Error Codes can be returned
245 <member name="M:Tizen.Uix.TtsEngine.Engine.Initialize">
247 Called when the engine service user initializes TTS engine.
250 Following Error Codes can be returned
253 3. NotSupportedFeature
257 <member name="M:Tizen.Uix.TtsEngine.Engine.Deinitialize">
259 Called when the engine service user deinitializes TTS engine.
262 NOTE that the engine may be terminated automatically. When this callback function is invoked, the release of resources is necessary.
265 Following Error Codes can be returned
270 <member name="M:Tizen.Uix.TtsEngine.Engine.ForEachSupportedVoices(Tizen.Uix.TtsEngine.Engine.SupportedVoice,System.IntPtr)">
272 Called when the engine service user gets the whole supported voice list.
275 In this function, the engine service user's callback function 'SupportedVoice()' is invoked repeatedly for getting all supported voices,
276 and userData must be transferred to 'SupportedVoice()'. If 'SupportedVoice()' returns false, it should be stopped to call 'SupportedVoice()'.</remarks>
277 <param name="callback">The callback function</param>
278 <param name="userData">The user data which must be passed to SupportedVoice()</param>
280 Following Error Codes can be returned
284 <postcondition>This callback function invokes SupportedVoice() repeatedly for getting all supported voices.</postcondition>
286 <member name="M:Tizen.Uix.TtsEngine.Engine.IsValidVoice(System.String,System.Int32,System.Boolean@)">
288 Called when the engine service user checks whether the voice is valid or not in TTS engine.
290 <param name="language">The language is specified as an ISO 3166 alpha-2 two-letter country code followed by ISO 639-1 for the two-letter language code.
291 For example, "ko_KR" for Korean, "en_US" for American English</param>
292 <param name="type">The voice type</param>
293 <param name="isValid">A variable for checking whether the corresponding voice is valid or not. true to be valid, false to be invalid</param>
295 Following Error Codes can be returned
300 <member name="M:Tizen.Uix.TtsEngine.Engine.SetPitch(System.Int32)">
302 Called when the engine service user sets the default pitch of TTS engine.
304 <param name="pitch">The default pitch</param>
306 Following Error Codes can be returned
313 <member name="M:Tizen.Uix.TtsEngine.Engine.LoadVoice(System.String,System.Int32)">
315 Called when the engine service user requests to load the corresponding voice type for the first time.
317 <param name="language">The language is specified as an ISO 3166 alpha-2 two-letter country code followed by ISO 639-1 for the two-letter language code.
318 For example, "ko_KR" for Korean, "en_US" for American English</param>
319 <param name="type">The voice type</param>
321 Following Error Codes can be returned
330 <member name="M:Tizen.Uix.TtsEngine.Engine.UnloadVoice(System.String,System.Int32)">
332 Called when the engine service user requests to unload the corresponding voice type or to stop using voice.
334 <param name="language">The language is specified as an ISO 3166 alpha-2 two-letter country code followed by ISO 639-1 for the two-letter language code.
335 For example, "ko_KR" for Korean, "en_US" for American English</param>
336 <param name="type">The voice type</param>
338 Following Error Codes can be returned
346 <member name="M:Tizen.Uix.TtsEngine.Engine.CheckAppAgreed(System.String,System.Boolean@)">
348 Called when the engine service user requests for TTS engine to check whether the application agreed the usage of TTS engine.
349 This callback function is called when the engine service user requests for TTS engine to check the application's agreement about using the engine.
350 According to the need, the engine developer can provide some user interfaces to check the agreement.
353 If the TTS engine developer wants not to check the agreement, the developer has need to return proper values as isAgreed in accordance with the intention.
354 true if the developer regards that every application agreed the usage of the engine, false if the developer regards that every application disagreed.
355 NOTE that, however, there may be any legal issue unless the developer checks the agreement.
356 Therefore, we suggest that the engine developers should provide a function to check the agreement.
358 <param name="appid">The Application ID</param>
359 <param name="isAgreed">A variable for checking whether the application agreed to use TTS engine or not. true to agree, false to disagree</param>
361 Following Error Codes can be returned
364 3. NotSupportedFeature
368 <member name="M:Tizen.Uix.TtsEngine.Engine.NeedAppCredential">
370 Called when the engine service user checks whether TTS engine needs the application's credential.
372 <returns> true if TTS engine needs the application's credential, otherwise false </returns>
374 <member name="M:Tizen.Uix.TtsEngine.Engine.CancelSynthesis">
376 Called when the engine service user cancels to synthesize a voice.
379 Following Error Codes can be returned
384 StartSynthesis should be performed
387 <member name="M:Tizen.Uix.TtsEngine.Engine.#ctor">
392 http://tizen.org/feature/speech.synthesis
395 <member name="M:Tizen.Uix.TtsEngine.Engine.EngineMain(System.Int32,System.String[])">
397 Main function for Text-To-Speech (TTS) engine.
398 This function is the main function for operating TTS engine.
401 http://tizen.org/feature/speech.synthesis
404 ServiceAppMain should be used for working the engine after this function.
406 <param name="argc">The argument count(original)</param>
407 <param name="argv">The argument(original)</param>
408 <exception cref="T:System.ArgumentException">Thrown in case of Invalid Parameter</exception>
409 <exception cref="T:System.NotSupportedException">Thrown in case of Not supported</exception>
410 <exception cref="T:System.InvalidOperationException">thrown in case of Operation failure</exception>
412 <member name="M:Tizen.Uix.TtsEngine.Engine.GetSpeedRange(System.Int32@,System.Int32@,System.Int32@)">
414 Gets the speed range from Tizen platform
417 http://tizen.org/feature/speech.synthesis
420 This API is used when TTS engine wants to get the speed range from Tizen platform
422 <param name="min">The minimum speed value</param>
423 <param name="normal">The normal speed value</param>
424 <param name="max">The maximum speed value</param>
425 <exception cref="T:System.NotSupportedException">Thrown in case of Not supported</exception>
426 <exception cref="T:System.InvalidOperationException">thrown in case of Operation failure</exception>
428 <member name="M:Tizen.Uix.TtsEngine.Engine.GetPitchRange(System.Int32@,System.Int32@,System.Int32@)">
430 Gets the pitch range from Tizen platform.
433 http://tizen.org/feature/speech.synthesis
436 This API is used when TTS engine wants to get the pitch range from Tizen platform.
438 <param name="min">The minimum pitch value</param>
439 <param name="normal">The normal pitch value</param>
440 <param name="max">The maximum pitch value</param>
441 <exception cref="T:System.NotSupportedException">Thrown in case of Not supported</exception>
442 <exception cref="T:System.InvalidOperationException">thrown in case of Operation failure</exception>
444 <member name="M:Tizen.Uix.TtsEngine.Engine.SendResult(Tizen.Uix.TtsEngine.ResultEvent,System.IntPtr,System.Int32,Tizen.Uix.TtsEngine.AudioType,System.Int32)">
446 Sends the synthesized result to the engine service user.
449 http://tizen.org/feature/speech.synthesis
452 This API is used in StartSynthesis(), when TTS engine sends the synthesized result to the engine service user.
453 The synthesized result must be transferred to the engine service user through this function.
455 <param name="resultEvent">The result event</param>
456 <param name="data">Result data</param>
457 <param name="dataSize">Result data size</param>
458 <param name="audioType">The audio type</param>
459 <param name="rate">The sample rate</param>
460 <exception cref="T:System.ArgumentException">Thrown in case of Invalid Parameter</exception>
461 <exception cref="T:System.NotSupportedException">Thrown in case of Not supported</exception>
462 <exception cref="T:System.InvalidOperationException">thrown in case of Operation failure</exception>
464 EngineMain function should be invoked before this function is called. StartSynthesis() will invoke this function.
467 <member name="M:Tizen.Uix.TtsEngine.Engine.SendError(Tizen.Uix.TtsEngine.Error,System.String)">
469 Sends the error to the engine service user.
472 http://tizen.org/feature/speech.synthesis
474 <param name="error">The error reason</param>
475 <param name="msg">The error message</param>
477 EngineMain function should be invoked before this function is called.
480 <member name="M:Tizen.Uix.TtsEngine.Engine.SetPrivateDataSetDelegate(Tizen.Uix.TtsEngine.Engine.Action{System.String})">
482 Sets a callback function for setting the private data.
485 http://tizen.org/feature/speech.synthesis
487 <param name="callback">
488 Called when the engine service user gets the private data from Tts engine.
490 a = Key -- The key field of private data
491 b = data -- The data field of private data
492 Following Error Codes can be returned
498 <exception cref="T:System.ArgumentException">Thrown in case of Invalid Parameter</exception>
499 <exception cref="T:System.UnauthorizedAccessException">Thrown in case of Permission denied</exception>
500 <exception cref="T:System.NotSupportedException">Thrown in case of Not supported</exception>
501 <exception cref="T:System.InvalidOperationException">thrown in case of Operation failure</exception>
503 Main function should be invoked before this function is called.
506 <member name="M:Tizen.Uix.TtsEngine.Engine.SetPrivateDataRequestedDelegate(Tizen.Uix.TtsEngine.Engine.OutAction{System.String})">
508 Sets a callback function for setting the private data.
511 http://tizen.org/feature/speech.synthesis
513 <param name="callback">callback function
514 Called when TTS engine receives the private data from the engine service user.
515 This callback function is called when the engine service user sends the private data to TTS engine.
517 a = Key -- The key field of private data
518 b = data -- The data field of private data
519 Following Error Codes can be returned
525 <exception cref="T:System.ArgumentException">Thrown in case of Invalid Parameter</exception>
526 <exception cref="T:System.UnauthorizedAccessException">Thrown in case of Permission denied</exception>
527 <exception cref="T:System.NotSupportedException">Thrown in case of Not supported</exception>
528 <exception cref="T:System.InvalidOperationException">thrown in case of Operation failure</exception>
530 Main function should be invoked before this function is called.