--- a/usr/palm/applications/com.palm.app.phone/phonePopups/sources/IncomingCallImpl.js +++ b/usr/palm/applications/com.palm.app.phone/phonePopups/sources/IncomingCallImpl.js @@ -16,6 +16,13 @@ //Service calls {name: "wiredSubscription", kind:"PalmService", service:"palm://com.palm.keys/headset/", method: "status", subscribe: true, onSuccess: "onWiredButtonEvent", onFailure: "onWiredButtonEvent"}, + {name: "speechd", + kind: "PalmService", + service: "palm://org.webosinternals.speechd.service/", + method: "say", + onSuccess: "", + onFailure: "", + subscribe: true}, // todo use enyo.application.SystemStatus for these {name: "lockSubscription", kind:"PalmService", service:"palm://com.palm.systemmanager/", method: "getLockStatus", subscribe: true, onSuccess: "onLockStatusEvent", onFailure: "onLockStatusEvent"}, @@ -82,6 +89,16 @@ this.$.displayName.setContent(call.contact.name || call.contact.displayName || $L("Unknown")); this.$.numberType.setContent(call.contact.labelFormatted || call.contact.locationFormatted || ""); } + //Patch speechd, speak caller name + //enyo.error("ActiveCallLineIncoming = " + JSON.stringify(enyo.windowParams)); + //enyo.error("call = " + JSON.stringify(call)); + //enyo.error("contact = " + JSON.stringify(call.contact)); + var nameTX = call.contact.name || call.contact.displayName || call.contact.labelFormatted || call.contact.locationFormatted || $L("Unknown"); + this.$.speechd.call({ + "text": "Anruf von " + nameTX, + "output":"espeak-ringtones", + "language":"de" + }); if (call.contact.picture.src != undefined) { this.picLoc = "url(" + call.contact.picture.src + ")";