Showing posts with label Audrey. Show all posts
Showing posts with label Audrey. Show all posts

Thursday, June 12, 2008

xPLAudreyTTS released

I have released the first version of xPLAudreyTTS here.

Dusting off xPLHALi

It's been a while since I worked on xPLHALi. I made just a small change to it, making the xPL portion of the script engine more generic - meaning it can see all xPL messages (other than config and heartbeats) - so there's no need for an external scripting engine. It's more a feature for other users since I already have my xPL/xAP scripting engine. I plan on adding an option to disable this feature if desired. I may add support for xAP messages to the scripting engine and am thinking about a bridge to connect 2 instances of HAL over xPL.

I've finished up the config stuff for xPLAudreyTTS. I have a dropdown box to choose the default voice. I just need to create instructions and zip everything together. The rest of the config will be from a text file. It's a simple interface:



Wednesday, June 11, 2008

xPLAudreyTTS Update

I ran into a few more stumbling blocks when I discovered I can't just send xPL messages to non-existent xPL devices and have my app grab them. Apparently, the xPL hub doesn't forward packets for non-existent devices. That means I had to create xPL listeners for each Audrey I want to send TTS to, like Medianet does for each player. I eventually got it all sorted out last night and have started some testing of it. If all goes well, I'll post it up here.

In the meantime, I've been testing my xPL/xAP/starCOMUltra scripting app. I've converted all my Floorplan scripts and have turned it off a couple days ago. After a few problems in my script, I got a clean run with it overnight, no small feat considering my system pumped out 21 xAP messages/minute and about 10 xPL messages/minute overnight.

Tuesday, June 10, 2008

xPLTTSAudrey

Last night, I started writing a VB.net app to push TTS to our 3Com Audreys. It's been taxing my amateur programming skills. I've been giving myself a crash course on SAPI, launching external processes, and just when I thought I had it all figured out, I had to learn about threads. I think I've got it all working though, I just need to figure out how I'm going to direct TTS to the various Audreys around the house. I suppose a config file that maps Audrey IP addresses to xPL target names will work.

Anyway, it works by picking up xPL tts.basic messages sent to it. It extracts the speech data, does a text to WAV conversion, runs LAME on the resulting WAV file to create an MP3, then does an HTTP get from the specified Audrey's web server to push the MP3 to it (using this method).

Sunday, December 23, 2007

Summary of New Audrey Hacks

This is just a note to myself to document the hacks I added to the Audrey:

  • Enable access to Audrey internal web server http://www.3rdmoon.com/crusso/audrey/remotecontrol/remotefrompc.htm
    Edit file /config/rm-apps, change this line
    rb,/kojak/kojak-slinger, -c -e -s -i 127.1
    to look like this
    rb,/kojak/kojak-slinger, -c -e -s

  • Installed Plus pack (http://www.audreyhacking.com/wiki/index.php/Plus_pack)
    This adds some Unix commands like mv, grep, and especially fs-cifs which lets us mount windows file shares. Added these lines to the bottom of /kojak/boot.sh to mount the mp3 directory on our windows server:
    sleep 10 # wait for networking to come up
    /nto/bin/fs-cifs -a //mywindowsservername:192.168.1.2:/mp3 /mp3 user password

  • Installed telnetd/inetd (http://www.audreyhacking.com/wiki/index.php/Telnetd/inetd)
    This lets us telnet into the Audrey so we don't have to sit typing at it. Made installing all these hacks easy to do from the comfort of a real keyboard.

  • Added the ability to push WAVs by installing playsound_noph from here http://planetwebb.com/audrey and added this file (/data/XML/playsound.shtml) to the Audrey web server:

    <html><head><title>WAV Push</title></head></body>
    <!--#exec cmd="playsound_noph $QUERY_STRING &" -->
    </body></html>
    Now WAVs can be remotely pushed to the Audrey by loading this URL: http://audrey.ip.address/playsound.shtml?http://windows.server/wavs/abc.wav

  • Installed GUI MP3 Player phplay (http://www.geocities.com/flipflop7146/audrey.html also relevent http://www.audreyhacking.com/wiki/index.php/MP3_Playing)
    So now we can play music off our server.

  • Created my own icon for phplay and added it to the Audrey Options menu (http://3rdmoon.com/crusso/audrey/interface/addbuttons.htm)

  • Installed the Mr. Audrey package manager (http://www.mraudrey.net/pkgs/ins-utils.zip)
    This is necessary to install the gui-less MP3 player (plaympegaudio_noph) to push MP3s to the Audrey since I couldn't find it anywhere except in an install package for Mr. Audrey. Just transfer this file to the Audrey, chmod +x ins-utils.zip and then execute it to install the package manager

  • Installed plaympegaudio_noph (http://www.mraudrey.net/pkgs/apps/ins-mpgnoph.zip). Same thing, transfer it to the Audrey, make it executable and run it. Created /data/XML/playmp3.shtml:
     <html><head><title>MP3 Push</title></head></body>
    <!--#exec cmd="plaympegaudio_noph $QUERY_STRING &" -->
    </body></html>
    Similar to the WAV push, the MP3 push can be done by accessing the URL. It can be automated in a script using wget to download the URL.

  • I think that's all. I replicated the changes to 3 other Audreys by dumping an image to a CF and installing it on the other 3. Not bad for an evening's work :)