Notices


Reply
Thread Tools
Posts: 137 | Thanked: 150 times | Joined on Jan 2010
#91
Google Chrome wouldn't play the no extension files. Bizarrely it downloaded them.

I know just about nothing about sound on webpages: I copied the first snippet I found that worked
 

The Following User Says Thank You to CormacB For This Useful Post:
Posts: 1,203 | Thanked: 3,027 times | Joined on Dec 2010
#92
firefox didn't do anything. may have been server related. i'm using xerver at the mo because it is small and takes seconds to set up.

js is not my forte. i couldn't get the right syntax/escape sequence for the ' or " round type='audio/wav' to try it
 

The Following User Says Thank You to Android_808 For This Useful Post:
Posts: 31 | Thanked: 38 times | Joined on Dec 2010
#93
Great to see so much happening around the navigation. Good work! I fiddled a bit more on the python espeak server. The new version now:

- sets cache headers
- doesn't get confused by slashes

- http://localhost:9999/turn right
will read out "turn right"

- http://localhost:9999/:turn-right.wav
will play "sounds/turn-right.wav" because the colon after the slash triggerd sound file handling

- http://localhost:9999/:turn-right.wav|at broadway then|:turn-left.wav
will play sound file,reat out 'at broaway then', play another sound file

- adds commands to a talk queue with each request

- http://localhost:9999/CQ
clears the queue

Very much a quick hack. It works better on my n900 then on my laptop - there aplay adds a second or two after each file. And of course, its utterly insecure to be able to pass in filenames - a mapping of sorts in the code is required. But maybe good enough for playing around :-)

https://baach.de/Members/jhb/speak_02.py/view
 

The Following 7 Users Say Thank You to jhb For This Useful Post:
Posts: 31 | Thanked: 38 times | Joined on Dec 2010
#94
Actually for testing CormacBs config.xml parser (thanks) I slightly modified the html he created:

http://jhb.pastebin.com/6xW0bk8J

and in speak_02.py:

SOUNDPATH = 'english/english_male/'
 

The Following User Says Thank You to jhb For This Useful Post:
GEONXT's Avatar
Posts: 64 | Thanked: 21 times | Joined on Dec 2009 @ New Zealand
#95
I deleted my .Maps folder from my Docs is there anyway to retrieve this?
 
Posts: 1,994 | Thanked: 3,342 times | Joined on Jun 2010 @ N900: Battery low. N950: torx 4 re-used once and fine; SIM port torn apart
#96
Originally Posted by GEONXT View Post
I deleted my .Maps folder from my Docs is there anyway to retrieve this?
Nokia Maploader through PC Internet and USB cable
(download map of country/countries or/and voices)

and/or

connect N900 to Internet and open Maps and it will download data for the places you look at
 
Posts: 173 | Thanked: 160 times | Joined on Jan 2010 @ London, UK
#97
It's FAT so you could try file recovery tools more reliably than most other filesystems.
 

The Following User Says Thank You to damion For This Useful Post:
Posts: 362 | Thanked: 143 times | Joined on Mar 2008
#98
here is a link of direct links to ALL maps and voice files. http://www.hpsblog.com/2009/07/direc...0-without.html this may become useful.

cheers

Last edited by cheve; 2011-01-15 at 03:47.
 

The Following 3 Users Say Thank You to cheve For This Useful Post:
Posts: 1,203 | Thanked: 3,027 times | Joined on Dec 2010
#99
Been wrestling with apache2 on Laptop for a bit trying to get extension-less file playback in Firefox. Managed to get Firebug to show that the page has a audio/wav plugin loaded by changing the default mime-type for the server to application/octet-stream. So far no sound though.

In the process of doing this, I've also tried to get <embed>'s onerror attribute working so I can at least get some idea of what is going on. Unfortunately, as yet I've had no success.
 
Posts: 1,203 | Thanked: 3,027 times | Joined on Dec 2010
#100
Had nothing but grief with web server trying to test out different settings to load extension-less files. I've even been having issues with the originally posted code. Works one minute then doesn't the next so its made testing an absolute nightmare.

I have however found a way to make it work reliably, for me anyway. If the server (apache linux, win32 and xerver) all want to be stupid....get rid of them. I've modified the test page so that it now can load local xml files. Rather than using

Code:
xmlhttp.readyState==4 && xmlhttp.status==200
I'm now using:

Code:
xmlhttp.readyState==4 && xmlhttp.status==0
This then presents the issue that xmlhttp.responseXML is blank, so I've added a function to take responseText and create the XML doc for the parser.
Attached Files
File Type: zip html.zip (2.9 KB, 116 views)
 

The Following 2 Users Say Thank You to Android_808 For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 17:36.