webOS Nation Forums >  Homebrew >  WebOS Internals > Speech Dispatcher
Speech Dispatcher
  Reply
Like Tree5Likes

 
Thread Tools Display Modes
Old 11/01/2012, 08:13 AM   #61 (permalink)
Member
 
60RH's Avatar
 
Posts: 443
Quote:
Originally Posted by HaPe View Post
Hi all,


Be aware that you need to change the language in line 29 of the patch before install!


HaPe
...and line 27 that says "Anruf von" so it should be "call from" translated in your preferred language.

Last edited by BoRn; 11/01/2012 at 08:47 AM.
60RH is offline   Reply With Quote
Thanked By: HaPe
Old 11/08/2012, 11:15 AM   #62 (permalink)
Member
 
60RH's Avatar
 
Posts: 443
Any way to change the voices settings in navit or for this nice patch?
60RH is offline   Reply With Quote
Old 12/20/2012, 06:03 PM   #63 (permalink)
Member
 
Posts: 363
Quote:
Originally Posted by hape View Post
Hi all,

beginning with version 0.7.1-14 (which is currently in the alpha feed) I added a javascript service.
Good - but to which alpha feed did you add these changes?
I use a TP 3.0.5 and in preware I have "alpha-apps" fields enabled - but I don't see tis version 0.7.1-14 .
I'm still on v.0.7.1-10.2
MartinH@webos is offline   Reply With Quote
Old 02/15/2013, 09:48 AM   #64 (permalink)
Member
 
60RH's Avatar
 
Posts: 443
Quote:
Originally Posted by hape View Post
Hi all,

beginning with version 0.7.1-14 (which is currently in the alpha feed) I added a javascript service. I updated the documentaion in the WIKI with the details: Application:SpeechDispatcher - WebOS Internals

The Mojo app now shows you the default audio channel and you can set is with the icon in the lower right corner. There is also a test button to test the selected audio channel and the service.

The attached patch can be used with this version to speak the incoming caller name.
Be aware that you need to change the language in line 29 of the patch before install!
You will get the best results if you use a ring tone with a little bit of silence at the beginning, because the speak output starts with the ringtone in the same volume. I diden't find a way to output it before the ringtone starts.
You need to set the ringtone to a audio file with silence if you only want to have the name spoken.

HaPe
Modified patch for english and all is good but I wanted to play with different voices and added "type":"female1"
to the service call but it still speaks with the default voice.
even messed with speechhd.conf in /var/etc/speech-dispatcher and changed the DefaultVoiceType in the global conf for espeak.
What am I doing wrong?
60RH is offline   Reply With Quote
Old 06/14/2016, 01:32 PM   #65 (permalink)
Homebrew Developer
 
Nafetz's Avatar
 
Posts: 155
Has anybody ever done this with Mojo?
I couldn't find any app so far where this is used. Even in Navit I couldn't find such a service request.

This is the code I tested:

Code:
var request = new Mojo.Service.Request("palm://org.webosinternals.speechd.service", {
method: 'say',
parameters: {
  language: "en",
  text: $L("Let us do a test"),
  output: "espeak-ringtones"
}}
For debugging reasons I changed this into

Code:
var request = new Mojo.Service.Request("palm://org.webosinternals.speechd.service", {
method: 'say',
parameters: {
  language: "en",
  text: $L("Let us do a test"),
  output: "espeak-ringtones"
},
onSuccess:  function(result) {
  this.controller.showAlertDialog({
    onChoose : function(inValue) {},
    allowHTMLMessage : true, 
    title : $L("Success"),
    message : Object.toJSON(request),
    choices : [ { label : "Ok", value : "", type : "affirmative" } ]
  });
  delete this.request;
}.bind(this),
onFailure:  function(err) {
  Mojo.Log.info("###### Error ?? #####" + request)
  this.controller.showAlertDialog({
    onChoose : function(inValue) {},
    allowHTMLMessage : true, 
    title : $L("Error"),
    message : Object.toJSON(request),
    choices : [ { label : "Ok", value : "", type : "affirmative" } ]
  });
  delete this.request;
}.bind(this)
}
I never could make it into "onSuccess". You can see the value of request in the attachment.
The value of err is:

Code:
{"returnValue":false,"errorCode":-1,"errorText": "Not permitted to send to org.webosinternals.speechd.service."}
I tested on a HP Veer with webOS 2.2.4. Developer Mode is activated, Speech Dispatcher is installed and the device is rebooted.

When I try to call the methods with novaterm as described at the bottom of the webos-internals page I always get the error message from the value err (see above).

Is there something I can do to make this work?
Attached Images
File Type: png Speechd.png (59.5 KB, 4 views) Email Attachment
Nafetz is offline   Reply With Quote
Old 06/14/2016, 01:38 PM   #66 (permalink)
Homebrew Developer
 
Nafetz's Avatar
 
Posts: 155
OK - found out, that my Speed Dispatcher is v0.7.1-10
Webos-Internals says that the javascript services come with v0.7.1-14!
So where can I get the newer version?
Nafetz is offline   Reply With Quote
Old 06/14/2016, 11:31 PM   #67 (permalink)
Homebrew Developer
 
Nafetz's Avatar
 
Posts: 155
I finally discovered it in the Testing Feeds - works as expected

What a pity that it never made it into the regular feed...
Nafetz is offline   Reply With Quote
Old 06/15/2016, 12:22 PM   #68 (permalink)
pivotCE Developer
 
Preemptive's Avatar
 
Posts: 3,354
What are you building?
__________________
webOS Status Report | The Zombie & Dead app list | User Count | webOS Service Pack | Back up advice
Preemptive is offline   Reply With Quote
Old 06/15/2016, 01:21 PM   #69 (permalink)
Homebrew Developer

 
Posts: 2,949
You might want to check https://github.com/wosigh/speechd I migrated everything from git.webos-internals.org to there. Eventually this will be moved to the official WebOS Internals GitHub. Just the admin is tight on time now.

-- Sent from my TouchPad using Communities
__________________
HP Veer (daily driver), HP Pre 3, HP Touchpad Proper 4G/LTE (Sierra MC7710), HP Touchpad 32GB WiFi, Palm Pre 2
Herrie is online now   Reply With Quote
Thanked By: Nafetz
Old 06/15/2016, 02:51 PM   #70 (permalink)
Member
 
dkirker's Avatar
 
Posts: 1,170
Quote:
Originally Posted by Herrie View Post
You might want to check https://github.com/wosigh/speechd I migrated everything from git.webos-internals.org to there. Eventually this will be moved to the official WebOS Internals GitHub. Just the admin is tight on time now.

-- Sent from my TouchPad using Communities
We should get this stuff over into https://github.com/webos-internals
__________________
Did you know:

webOS ran on a Treo 800 during initial development.
dkirker is offline   Reply With Quote
Thanked By: Nafetz
Old 06/15/2016, 05:00 PM   #71 (permalink)
Homebrew Developer
 
Nafetz's Avatar
 
Posts: 155
Quote:
Originally Posted by Preemptive View Post
What are you building?
I was riding with my bike home from work yesterday while a match of Euro 2016 was running. My Goooal app did a good job and sent a notification to my headset that a goal was scored. But this didn't help much because I had no access to my Veer and couldn't see who scored. So I thought that there might be a possibility to use Speech Dispatcher to read the score.
Seems I'm lucky that this is really possible. Had a first test today and it looked very good. So I will publish an update when I'm finished with implementing this.
Nafetz is offline   Reply With Quote
Liked by uwer and Preemptive like this.
Old 06/15/2016, 07:33 PM   #72 (permalink)
pivotCE Developer
 
Preemptive's Avatar
 
Posts: 3,354
Can you make it cheer for your team and boo for the other?
__________________
webOS Status Report | The Zombie & Dead app list | User Count | webOS Service Pack | Back up advice
Preemptive is offline   Reply With Quote
Liked by Nafetz likes this.
Thanked By: Nafetz
Old 06/16/2016, 12:28 AM   #73 (permalink)
Homebrew Developer

 
Posts: 2,949
Quote:
We should get this stuff over into https://github.com/webos-internals
ka6sox will take care of that later, he's busy now. But yeah that's the plan :-)


-- Sent from my TouchPad using Communities
__________________
HP Veer (daily driver), HP Pre 3, HP Touchpad Proper 4G/LTE (Sierra MC7710), HP Touchpad 32GB WiFi, Palm Pre 2
Herrie is online now   Reply With Quote
Old 06/16/2016, 02:15 AM   #74 (permalink)
Homebrew Developer
 
Nafetz's Avatar
 
Posts: 155
Does anybody know if it's possible to use other voices e.g. like female1?
There is a hint in the posting of Zer0C001, an unanswered question of 60RH and a hint on the Wiki (last block "Name: say")
So far I had no success. Not important, but would be nice...

Quote:
Originally Posted by Preemptive View Post
Can you make it cheer for your team and boo for the other?
Nice idea - I will have a look on this
Nafetz is offline   Reply With Quote
Old 06/18/2016, 06:21 PM   #75 (permalink)
Homebrew Developer
 
Nafetz's Avatar
 
Posts: 155
Seems to difficult for me - at least on Touchpad.
I downloaded and installed the ipk file with version number v0.7.1-14 on my HP Veer and on my HP Touchpad. Whenn pressing the test button inside the app Speech Dispatcher it works on the Veer but not on the Touchpad.
I tested the same code on the Touchpad as written above, but it seems like the service request is just skipped.

Whe I use v0.7.1-10 on the Touchpad then I get this message:
"Service does not exist: org.webosinternals.speechd.service"
As written above the error with v0.7.1-10 on the Veer was:
"Not permitted to send to org.webosinternals.speechd.service."

So there seems to be something different...

Does anybody know how this works on Touchpad?

The github files seem to be interesting, but I have no clue how to use them.

So maybe I'll deliver the new version of my app with text-to-speech only for phones but not for Touchpad.
Ok, I would prefer to use this feature rather on phones than on Touchpad, but it would be nicer to offer it on both
Nafetz is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0