473,386 Members | 1,775 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Cannot stream WAV audio

A link is presented to the browser:

echo "<embed src=\"http://sites.mydomain.com/cgi-bin/play.cgi?speech+1\"
autostart=\"true\" hidden=\"true\" width=\"0\" height=\"0\">"
echo "</embed>"

The browser requests the URL, and the server executes the CGI and sends
the following:

echo "Content-Type: audio/x-wav"
echo "Content-transfer-encoding: BINARY"
echo
espeak --stdout "This is a test and only a test"

The espeak program does a text-to-speech conversion and outputs a WAV
stream. I can output the audio to a file and then serve the file, but
the results are the same.

Safari on a Mac plays the stream. Safari (and Firefox) on Windows XP
plays nothing!

This is the header for the response received by the browser:

HTTP/1.x 200 OK
Date: Thu, 23 Oct 2008 20:32:16 GMT
Server: Apache/2.2.0 (Fedora)
Content-Transfer-Encoding: BINARY
Connection: close
Transfer-Encoding: chunked
Content-Type: audio/x-wav
Oct 23 '08 #1
0 1834

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Dom Lague | last post by:
Hi I'am working on a program in vb.net / c# and I want to know how I can Validate an audio Stream from the internet. I need to be able to know if a web link is a good audio link or not. For...
4
by: Robert Oschler | last post by:
Hello, I have a web site that has an audio file on it that I make available for download. Right now I'm using the "right-click/save-as" approach. This is because left-clicking the link to the...
0
by: Jonarking | last post by:
Can anyone show me how to use a CustomStream object for inputting audio directly to the SAPI 5.1 speech engine? The help docs all say it can be done, but the only examples they give are for wav...
0
by: Tim Bücker | last post by:
Hello. How is it possible to get the audio stream from an avi-file using DirectShow? Greetings and thanks, Tim.
19
by: lawrence k | last post by:
How can I find out where my script is outputting to the screen for the first time? My error logs are full of stuff like this: PHP Warning: session_start(): Cannot send session cache...
4
by: hzgt9b | last post by:
Using VS 2003, VB.NET and/or ASP.NET 2.0, BACKGROUND I have a window forms based application that contains a TreeView control and a WebBroswer (AxSHDocVw.AxWebBrowser) control. The TreeView is...
1
by: rkatka | last post by:
I'm working with a sql db field that stores audio and video as a varbinary(max) field. I'm able to retrieve this from the db as a byte, but I'm struggling to figure out how to convert it back to an...
0
by: krudonix | last post by:
Hey i've developed a call logging system that records to mono a-law wav files. now i want to add a feature to playback the audio as its being recorded an event fires when i recieve audio...
1
by: rechkunov | last post by:
And it does not record audio when I am using PCM encoding and setRecordStream, stream is always empty, it only records to file for PCM encoding, AMR is captured to stream just fine. I am using SE...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.