Languages

Menu
Sites
Language
Text-to-Speech (TTS) Native service odd behavior

 

Hi everyone.

We are developing an hybrid application using Web API and Native Services. We have a service responsible for text synthesizing that uses TTS api from tizen (https://developer.tizen.org/dev-guide/2.4.0/org.tizen.tutorials/html/native/uix/tts_tutorial_n.htm)

My code works fine when the text to be synthesized not contain accented words. So, for example, the following sentence works fine: Rio de Janeiro, 10 de agosto

However, the following sentence does not work: São Paulo, 10 de agosto.

I figured out this happen because of the accent in the word São

When adding that sentence using tts_add_text I receive the following error: TTS_ERROR_INVALID_PARAMETER

By the way, we are using Brazilian portuguese as default language. 

Any ideas about what could be happening? 

Thanks in advance.

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'Eco Sans Mono'; color: #0326cc}

Responses

6 Replies
Yasin Ali

Hi,

Check out if your voice is supported. Use following function:

typedef bool(* tts_supported_voice_cb)(tts_h tts, const char *language, int voice_type, void *user_data)
Parameters:
[in] tts The TTS handle
[in] language Language specified as an ISO 3166 alpha-2 two letter country-code followed by ISO 639-1 for the two-letter language code (for example, "ko_KR" for Korean, "en_US" for American English)
[in] voice_type A voice type (e.g. TTS_VOICE_TYPE_MALE, TTS_VOICE_TYPE_FEMALE)
[in] user_data The user data passed from the foreach function
Returns:
true to continue with the next iteration of the loop,
false to break out of the loop
 
Precondition:
tts_foreach_supported_voices() will invoke this callback function.
 
See below link for details:
https://developer.tizen.org/development/api-references/native-application?redirect=/dev-guide/2.3.0/org.tizen.native.mobile.apireference/group__CAPI__UIX__TTS__MODULE.html#gaeda32d3f020c1518676c3fed1d50edbf
 

Hope it will help you.
If you find my post is helpful for you, please mark it as answer to promote this post to others.

Rodrigo Morbach

Hi. 

Thanks for your reply. Yes, the language I am using it is supported.

The issue seems to be the accent.

Yasin Ali

I'm also guessing that its a problem with accent.

Rodrigo Morbach

This behavior only occurs if TTS runs as a native service. Does anyone know how to report this as bug in Tizen support?

Yasin Ali

You may use this site https://bugs.tizen.org/secure/Dashboard.jspa for reporting bug .

 

Wonnam Jang

Hello,

Can you share the log such as below log tag when you run the same code in as Native Service, if you can connect sdb shell?

And what's different between Native app and Native service?

Do you mean that Native service is service application?

 

# dlogutil ttsd ttsc ttsp -v time