Playing Certain Audio Files - Or Possibly PHP
Jun 10, 2010
I want to use HTML5's audio coding similar to the one below:
In order to play sound files depending on the input. What I'm working on is a text-to-speech webapplication.
What I'd need to happen is for there to be an input and then allow the user to type anything into the input, so if they type in:
Hello, how are you doing?
Javascript or PHP will recognize each character and translate it into an audio sequence.
In example:
It'd detect the "H" in hello and play sound file "H.ogg"
It'd then detect the "E" in hello and play sound file "E.ogg"
View 3 Replies
ADVERTISEMENT
Feb 24, 2011
I'm trying to stop the audio in a hidden div from playing once a user clicks on the next video clip. i know this is a known bug in IE but i can't figure out how to fix this (as i am a total noob). can someone tell me how i can do this? And yes, my client refuses to use firefox and only IE
Here is my current code.
View 1 Replies
View Related
Feb 24, 2011
I've a video list and when a user clicks on a video link it should play the video in one area of the page. but when you click on the second and third video links the audio from all videos play at the same time. i know this is a known bug in IE but for the life of me i can't fix it. it works fine for firefox but my client uses IE
How to stop the audio of the previous video when a new video link is clicked on?
<SCRIPT LANGUAGE="JavaScript">
View 1 Replies
View Related
Aug 3, 2011
I managed to construct a script to play random sound files to make listening tests for students. The audio files were actually taken from video files and I would now like students to be able to see the video too. I have the code below which works fine for my (and the students') needs, except that only the audio is played and not the video (and the mov files definitely do contain video). Can anyone suggest how I might change the code so that the video is shown too, either on the same page, or in a pop-up window? I would have thought it would be a matter of changing the window.doSound lines, but if so I can't figure out how.
Code:
View 1 Replies
View Related
Jul 23, 2005
I want to play an audio file embedded on my page by clicking on
an audio image and the page change to a new page. Is there a
cross-browser Javascript way to do this? Right now the code I have
is ...
<html>
<head>
<title>Dictionary: homeostasis</title>
<link href="liveink.css" type="text/css" rel="stylesheet"/>
</head>
<body>
<div class="dictionary-area">
<span class="dictionary-word">homeostasis</span>
(<span class="dictionary-pos">Noun</span>)
<br/>
<div class="dictionary-defn">The maintenance of a constant internal
state in a changing environment that is maintained by continually
making adjustments to the internal and external environment.</div>
<a href="homeostasis.mp3" target="new"><img src="audio.gif"
border="0"></a>
<div class="dictionary-close-window"><a
href="javascript:window.close()">Close Window</a></div>
</div>
</body>
</html>
The inconvenience is right now a new window is spawned to play the
audio., which contains the controller for playing the audio (complete
with pause, stop, and play buttons). All my audio clips are less than
3 seconds in length.. How can I play the audio file without launching
the controller? I don't care if there's no way to stop/pause the audio
once it's started.
View 1 Replies
View Related
Dec 10, 2010
I'm building an application. That have audio player.. When a visitor play the audio and it keeps playing while the visitor browsing to other pages.
View 4 Replies
View Related
Mar 24, 2006
How can I play midi and/or audio files using JavaScript?
I'm hoping there are some calls/APIs I can use that I am unaware of. My
JavaScript book from O'Reilly seems rather lacking in this area.
I'm looking for something like:
playMidiNote(pitch, duration);
playSoundFile(soundFileURL);
View 20 Replies
View Related
Jun 15, 2009
my website [URL] has been left unfinished by my friend and it doesnt look like he can finish it now. I have some understanding of code and have manually edited the existing pages in notepad to fix some issues. The one issue I have left is on the javascript samples player which overlays the main screen. I have all of the files (an flv and swf plus a folder full of js and a vbs file). As you will see, the morning chapter does not play but all of the others do. I have checked the flv in a player and it works fine, and it was created in the same way as the others. All flv and swf files are uploaded correctly I just can't work out why it is not working.
View 9 Replies
View Related
Apr 13, 2010
My computer seems to have problems with its javascript when opening new windows from certain sites that are either audio or video files. I simply have not got a clue where to begin.
View 3 Replies
View Related
Feb 9, 2011
I need to allow user to download mp3 files when they click on the link rather than streaming the audio in the browser. Need to use only Javascript to download the file.
View 1 Replies
View Related
Dec 26, 2010
User clicks on image map that displays DIV1 with player id="Player1". When user clicks on another part of the map, DIV2 appears with another video - but DIV1's player "Player1" keeps playing. How can I stop the event after going to another div? Lots of efforts "out there" but I've yet to find out just how to do it successfully.
View 1 Replies
View Related
Sep 16, 2010
Here's a simplified version of the function that's giving me trouble:
Code:
function saveArray(w){
var arr="['z',[";
[code]....
View 5 Replies
View Related
Feb 16, 2010
Does anyone have any recommendations/experience for loading a styled panel on the page (possibly based on a timer)? Do you know when you're on a site and a window pops up asking if you need help or want to chat... that's what I'm looking to accomplish. Something more than just text... I want a fully styled panel.
View 1 Replies
View Related
Dec 31, 2010
I have a website that I'm trying to install a shopping cart on and I'm trying to make it so when a certain color is selected an option pops up as an additional feature people have the option of choosing, but I only want the option visible when certain colors are selected. I think I have the code figured out, but there are 2 colors I want the option visible for and currently the option is only showing up for one of the colors. I tried creating two id's for each color and two jQuery codes that were basically the same but one for #color1 and one for #color2 but that didn't work either.
jscript:
css code:
View 1 Replies
View Related
Jan 21, 2004
I have a form which calculates values and gives the user a total depending on their selection in the drop down box. At the moment the value is displayed in a text field and I have got all the javascript to do this.
What I would ideally want is to embed the total in the page, rather than a text field. The total appears to the user like it is normal text in a page, only it will update when the form values are changed.
I presume that I want document.write to do this? Does anyone know how I could do this/ or if there is a page that does this sort of thing where i can 'borrow' the code?
View 3 Replies
View Related
Aug 16, 2010
I have designed a mail service in java.In my compose page,i want to attach some excel files of text files and to send it.After sending i want to store it my database.Then how can i download or open that file after opening that recipient mail inbox.
View 1 Replies
View Related
Oct 2, 2010
I have the following JavaScript (see below). The script requests an XML file from the server and displays it on the page.The script works fine when the requested XML file is stored on the same server as the script.The problem is when I try requesting an XML file from an external server such as the National Weather Service. I get an error. If I take the XML file from the National Weather Service and save it to my server it works. Why can't I use my script to request XML files stored on external servers?
Javascript Code
Code:
window.onload = initAll;
var xhr = false;
function initAll() {
document.getElementById("makeTextRequest").onclick = getNewFile;
[code]....
View 6 Replies
View Related
Dec 29, 2010
i need code in javascript to make the player select playing with the computer or other player and select who player beginning playing
View 2 Replies
View Related
Aug 27, 2010
In my quest to implement ajax for the first time i've hit a brick wall. i've been searching for hours for a solution but with no success. Here is the problem.
[Code]...
why is it not working? my PHP code is outputting the contents of the xml document.
View 1 Replies
View Related
Sep 5, 2008
I want to write a javascript to list of all files in a folder including files in the subfolders. This is for the scorm purpose to list all the files. some examples are listing files but not listing the files inside the subdirectories. I want the file's full path like C:Documentsjavascriptwilson.js like this.
View 5 Replies
View Related
Jan 15, 2010
I have four folders and each folder has one images, let say ( images-one.jpg, images-two.jpg, images-three.jpg, images-four.jpg). now,in index.php page there are four buttons, each buttons for each images. if i clicked button numer two for images-two.jpg, and then it will show that images name from that folder in index.php page. and then if i reload same index.php page or refreshed same page, i want to show SAME images that I clicked before which is images-two.jpg. how can i write that code to show images from four files, each files are in each folder.
View 1 Replies
View Related
Aug 20, 2007
PROBLEM 1:
I spent a lot of time finding code that would play an audio (.wav) file on a
mouseover cue that would work in Internet Explorer 6 and FireFox without any
user prompt to allow active-x scripts to be run etc, but unfortunately the
code does not work in Internet Explorer 7. Can you suggest an alternative?
PROBLEM 2:
When using a image switching code to swap an image to a .gif anim that plays
just once (created using Ulead Gif Animator 5), Internet Explorer 6 and
FireFox begin the animation cycle only when the image has been switched.
Unfortunately, Internet Explorer 7 seems to play the animation as soon as it
has been loaded so when it’s switched you only see the last frame. Can you
suggest an alternative? Code:
View 4 Replies
View Related
Oct 25, 2011
I am using the Google audio player on a website and the html is:
[Code]...
and write a click function but it doesn't work. How can I do this?
View 6 Replies
View Related
May 12, 2010
I have a webpage with a Flash audio player in it. I then implemented Facebox a JQuery lightbox. To stop the Flash movie showing through the Facebox I have added a show/hide javascript which does the job in Firefox and Safari but in IE the audio still plays when I hide the div. what I could add to my 'hidediv' function that will stop sound of Flash movie once div is hidden when in IE![URL]
View 3 Replies
View Related
Mar 19, 2007
I wanna play streaming audio (an asx.file) trough javascript. I allready found a tutorial on the net. Till so far it works (I can push play, pause and stop), but I want to change the volume to. An example: Code:
Do you know where the problem is? One thing that I must say is that the tutorial (where I took it from) worked with a wav-file, as you can see I work with a streaming file (asx-file).
View 2 Replies
View Related
Jun 2, 2011
I am not sure whether this requires flash or not, therefore I'd like to ask if it is technically possible to create your own audio/video player with JavaScript/jQuery? If not, could I create something similar just not with full functionality? Like stop, next, previous, etc. buttons?
View 3 Replies
View Related