The Vera Community forums have moved!

General => General => Topic started by: achalhoub on January 27, 2011, 04:53:43 am

Title: new timer and Text To Speech UPnP Announcer
Post by: achalhoub on January 27, 2011, 04:53:43 am
Dear Forum ,

I have created a UPnP device that can be run on any windows machine with .net 4.0 that will do the following

1. Return the the PC date and Time from the PC to circumvent the issue with the vera clock .
2. Read any text and announce it as Voice . It can be used to announce status, or any other info for that matter

It is available at the following link



www.softnet-eng.com/downloads/TimerAnnouncer.rar (http://www.softnet-eng.com/downloads/TimerAnnouncer.rar)

I don't know if this will work with Vera . Any one with some Lua programming skills can help us add it and use it for our scenes ?

I am happy to hear any comments to fix the bugs and add some extra functionality ( maybe news broadcaster, stock quotes ,etc..)

Title: Re: new timer and Text To Speech UPnP Announcer
Post by: Ap15e on January 27, 2011, 05:39:30 am
Great UPnP device! Can be controlled by Intel's UPnP tools, so should work with Vera.
Title: Re: new timer and Text To Speech UPnP Announcer
Post by: achalhoub on January 27, 2011, 06:02:53 am
Thank Ap15e,

I don't know how to go from here. Is there any workaround we can use to add it to vera 2 and to use it with the scenes?

Title: Re: new timer and Text To Speech UPnP Announcer
Post by: cedriclocqueneux on January 27, 2011, 06:45:06 am
It sounds good :D

It will be great to use it in scene to speak some announces !
Title: Re: new timer and Text To Speech UPnP Announcer
Post by: achalhoub on January 27, 2011, 07:31:57 am
I uploaded a newer version just now (I just fixed the service name)

and I am trying the following in the Lua Test Code
 
luup.call_action("urn:upnp-org:ServiceId:TimerAnnouncerService","Announce",{ announcement="hello" },35)
with no success.

I didn't get to the point where I read the date and time yet . Long way ahead..

Basically I will use this device to read the date time from my server since I am getting too much time and date resets from vera. I hope this works    ???

Title: Re: new timer and Text To Speech UPnP Announcer
Post by: Ap15e on January 27, 2011, 08:24:47 am
Please try

Code: [Select]
luup.call_action("urn:upnp-org:serviceId:TimerAnnouncerService","Announce",{ announcement="hello" },35)
luup.call_action("urn:upnp-org:serviceId:TimerAnnouncerService1","Announce",{ announcement="hello" },35)
luup.call_action("urn:upnp-org:serviceId:TimerAnnouncerService","Announce",{ announcement="hello" }, 'uuid:TimerAnnouncer1')
luup.call_action("urn:upnp-org:serviceId:TimerAnnouncerService","Announce",{ announcement="hello" },  'TimerAnnouncer1')
luup.call_action("urn:upnp-org:serviceId:TimerAnnouncerService1","Announce",{ announcement="hello" },  'uuid:TimerAnnouncer1')
luup.call_action("urn:upnp-org:serviceId:TimerAnnouncerService1","Announce",{ announcement="hello" },  'TimerAnnouncer1')


Would you mind posting a screenshot of the 'Advanced' tab of device #35?
Title: Re: new timer and Text To Speech UPnP Announcer
Post by: achalhoub on January 27, 2011, 08:40:47 am
Thank you for your help.

I am trying the different codes you sent and non of them worked  :-[

Thanks again
Title: Re: new timer and Text To Speech UPnP Announcer
Post by: Ap15e on January 27, 2011, 08:43:54 am
Your screenshot confirms that the udn is 'uuid:TimerAnnouncer1'.

Two possibilities remain:

Code: [Select]
luup.call_action("urn:upnp-org:serviceId:TimerAnnouncerService","Announce",{ announcement="hello" }, 'uuid:TimerAnnouncer1')
luup.call_action("urn:upnp-org:serviceId:TimerAnnouncerService1","Announce",{ announcement="hello" },  'uuid:TimerAnnouncer1')
Title: Re: new timer and Text To Speech UPnP Announcer
Post by: achalhoub on January 27, 2011, 08:47:11 am
tried this as well

luup.call_action("urn:upnp-org:serviceId:TimerAnnouncerService","Announce",{ announcement="hello" }, 'uuid:TimerAnnouncer1')
luup.call_action("urn:upnp-org:serviceId:TimerAnnouncerService1","Announce",{ announcement="hello" },  'uuid:TimerAnnouncer1')

Non of them work. Did u manage to make it work from your end?

Title: Re: new timer and Text To Speech UPnP Announcer
Post by: Ap15e on January 27, 2011, 09:02:31 am
Right now, I'm separated from my Vera by several firewalls. I will test in the evening (CET).

Two ideas remain:

1. Does Intel's Device Spy work with your UPnP device in your network (from another computer)?

2. Use the 'Advanced' tab of a scene to define your action (pick a device, add, select action, ...)

http://forum.micasaverde.com/index.php?topic=5251.0 might be related.
Title: Re: new timer and Text To Speech UPnP Announcer
Post by: Ap15e on January 27, 2011, 05:23:46 pm
Here are my findings:

1. Add 'Timer Announcer Device' (TAD) to Vera ('Add/Remove devices'->'Add control over another UPnP device, such as another MiOS'): OK
2. New Device 'TAD' visible on GUI: OK
3. Click on settings icon for TAD: NOK (nothing happens)
4. Add TAD to the 'Advanced' tab of a scene ('Pick a device' -> TAD -> 'Add'): OK
5. Select a service ('TAD' -> 'Please select'): NOK (no selection/service available)

How to get the uuid, although the settings page does not work (3.):

Code: [Select]
for u,v in pairs(luup.devices)
 do
  luup.log('*'..v.description..'*'..v.udn..'*')
end

In my case the udn is: uuid:4d494342-5342-5645-41d0-000000001bdc

Code: [Select]
err, errm = luup.call_action("urn:upnp-org:ServiceId:TimerAnnouncerService","Announce",{ announcement="hello" },  'uuid:4d494342-5342-5645-41d0-000000001bdc')

luup.log('*'..tostring(err)..'*'..tostring(errm))

err, errm = luup.call_action("urn:upnp-org:ServiceId:TimerAnnouncerService1","Announce",{ announcement="hello" },  'uuid:4d494342-5342-5645-41d0-000000001bdc')

luup.log('*'..tostring(err)..'*'..tostring(errm))

Result:

Code: [Select]
*401*No Control URLs for Device
*401*No Control URLs for Device

Analysis:
The uuid is correct, but something went wrong as early as in step 1.

Related topics:
http://forum.micasaverde.com/index.php?topic=5251.0
http://forum.micasaverde.com/index.php?topic=5397.0

New bug report:
http://bugs.micasaverde.com/view.php?id=1391

Edit:
Even the 'Network Light' that comes with 'Intel's Tools for UPnP Technology' cannot be successfully added to Vera ...
Title: Re: new timer and Text To Speech UPnP Announcer
Post by: achalhoub on February 04, 2011, 07:24:53 am
With the new firmware now out, do you think this will work?
Title: Re: new timer and Text To Speech UPnP Announcer
Post by: Ap15e on February 04, 2011, 08:15:52 am
Haven't tried yet, but there is no indication in the release notes that http://bugs.micasaverde.com/view.php?id=1391 has been fixed. AFAIK there will be a fix in the next beta firmware.
Title: Re: new timer and Text To Speech UPnP Announcer
Post by: Ap15e on March 26, 2011, 04:41:00 pm
The latest MiOS beta version (1.1.1234) does work with the TimerAnnouncer device.

Edit:
http://forum.micasaverde.com/index.php?topic=5466.msg36405#msg36405
Title: Re: new timer and Text To Speech UPnP Announcer
Post by: achalhoub on December 20, 2011, 10:13:02 am

Dear AP15e,

sorry for reviving an old post. Did you figure out the correct lua code to call this upnp device?
Title: Re: new timer and Text To Speech UPnP Announcer
Post by: Ap15e on December 20, 2011, 06:38:19 pm
http://forum.micasaverde.com/index.php/topic,5466.msg36405.html#msg36405
Title: Re: new timer and Text To Speech UPnP Announcer
Post by: achalhoub on December 21, 2011, 03:41:34 am
Hello again,


sorry for not being clear. I read your previous post. in the previous build, after adding a upnp device, we would be able to read the device ID from the advanced tab. in the newer builds, the settings icon appears disabled I am getting a weird message after i add a device (attached below) and I could not guess it. Is there any way to get that ID? I am working on amazing new devices and this would help a lot.

UPDATE: I went into the source HTML of the vera and was able to retrieve the ID, although testing it from Lua does nothing.

luup.call_action( "urn:upnp-org:ServiceId:TimerAnnouncerService", "Announce", {announcement= 'test test'}, 37)

I am running 1.1.1338. Can anyone else confirm the issue?

Update 2: it is working fine from within a scene.

Title: Re: new timer and Text To Speech UPnP Announcer
Post by: Ap15e on December 21, 2011, 08:02:15 am
Quote
Is there any way to get that ID?

My LSI (Luup System Information) plugin should be able to display the Luup id for your UPnP device.
Title: Re: new timer and Text To Speech UPnP Announcer
Post by: therealabdo on March 15, 2012, 04:39:01 am
Great plug in
I have created a scene and the Announcement worked great
unfortunately the PC Date didn't work
On the scene > Advanced > i have added the GetPCTIME..when run nothing happened
have any solution?

thank you
Title: Re: new timer and Text To Speech UPnP Announcer
Post by: RichardTSchaefer on March 15, 2012, 10:50:23 am
Now if we get a camera plugin that can accept a sound stream or file ... we could have Vera talk to us via the cameras with built-in speakers.

Title: Re: new timer and Text To Speech UPnP Announcer
Post by: Da_JoJo on March 15, 2012, 11:13:51 am
from what i understand is 2-way audio not really supported .
it seems it uses the webpage and flash thingy to send audio directly to the ip-cam over http, so capturing a devices data would be good start i guess..

ip-cam's input streams:
Axis :   rtsp://[camera-ip-address]:554/axis-media/media.amp
Panasonic: rtsp://ip_adx/MediaInput/h264
Sony: rtsp://ip_adx/media/video1
Sony snc-ch/dh/rh:  rtsp://[login:password@][camera domain name or IP address]/media/video1
the rest is here http://www.soleratec.com/rtsp/ (http://www.soleratec.com/rtsp/)

i recon it can be fixed on local pc ?
using VLC could make life easy  ::)
Title: Re: new timer and Text To Speech UPnP Announcer
Post by: AgileHumor on February 02, 2014, 07:59:08 pm
So just an update on this old thread. This works great on x64 Windows 8.  Showed up as a uPnP device and added easily.

I then used SRVAny.exe and make a service so it always runs in the background.  Just use the advanced tab of a scene to send the text.

Lastly, the current time function doesn't work...but I don't use it.

If your looking for a free Windows TTS program for Vera, this fits the bill.
Title: Re: new timer and Text To Speech UPnP Announcer
Post by: Pseudomizer on February 02, 2014, 10:04:50 pm
So just an update on this old thread. This works great on x64 Windows 8.  Showed up as a uPnP device and added easily.

I then used SRVAny.exe and make a service so it always runs in the background.  Just use the advanced tab of a scene to send the text.

Lastly, the current time function doesn't work...but I don't use it.

If your looking for a free Windows TTS program for Vera, this fits the bill.

Too bad the developer left the forum and no more enhancements are coming...  :(
Title: Re: new timer and Text To Speech UPnP Announcer
Post by: AgileHumor on February 02, 2014, 11:14:17 pm
Oh well, I'm sure something else will come along.  Works great for Windows 8.1 which should last em a while.