Recently I saved a 10 minutes speech on a PC digital recorder. I already transfered the file to my computer which file format is Wave. At the time I'd tryed to insert it in the site builder gallery it started but never ends the upload process.

I thoungh it was because of the large content, I recorded a 1 minute speech and the same happened.

Am I doing, something wrong?

I just need to insert voice recording from my digital recorder to my web page and make it start in a automatic form.

Dani AI

Generated

Short summary and a modern, practical workflow.

The upload likely stalled because raw WAV recordings are large (uncompressed PCM) and many gallery/upload scripts or shared hosts enforce file-size, POST-size or MIME restrictions — a common failure point for uploads. Historically linking the file (as noted) or using the old EMBED trick (as suggested) could work, but today the recommended approach is to (1) convert the recording to a web-friendly compressed format, (2) place the file on the server (FTP or file manager if the web form fails), and (3) embed with the HTML5 audio element so browsers pick the best format. (developer.mozilla.org)

Example HTML5 player (keep a visible control; autoplay is often blocked by browsers):

<audio controls autoplay>
  <source src="speech.mp3" type="audio/mpeg">
  <source src="speech.ogg" type="audio/ogg">
  Your browser does not support HTML5 audio.
</audio>

Note: most modern browsers block audible autoplay unless the user has previously interacted with the site or the media is muted — so autoplay may be ignored unless conditions are met. (developer.chrome.com)

Make the WAV smaller and web-ready (voice settings): use Audacity or ffmpeg to convert and reduce to mono + low bitrate (for spoken-word 64–128 kb/s mono is usually fine). Example ffmpeg command to create a 64 kb/s mono MP3:

ffmpeg -i input.wav -codec:a libmp3lame -b:a 64k -ac 1 speech.mp3

FFmpeg and related docs show these options; this drastically reduces upload size and bandwidth. (ffmpeg.org)

If uploads still fail, check server limits (upload_max_filesize, post_max_size, max_input_time) in php.ini or ask the host; when web-form uploads time out, upload via FTP or the host control panel. For widest browser coverage provide at least MP3 + Ogg/Opus sources and a download fallback for users and accessibility. (php.net)

Recommended Answers

All 9 Replies

If you are not trying to embed the file in a web page, you upload it to your server and access it like any other hyperlink.

<a href="yourSpeech.wav">Your Speech</a>

I appreciate your help, I tryed what you just suggested. But it did not work to have the voice recording in my website. I really don't know what I am doing wrong.:o

What I need is to transfer my voice from a digital voice recorder to my website but I want the sound to autostart as the web page is loaded. The problem I am having is on the upload process.

Can you or anyone else give me some help with this? the file format of this recording is wave.:sad:

have a look at the EMBED tag. this makes it possible to autostart audio.

Ah...auto start.

You need to embed the sound.

<embed src="yourFile.wav" width="0" height="0" autostart="true" />

wow you really waited for this? If i was in your case, i would just go search on google and surely i would see a website that has full info of what i needed. Rather than to wait for such a long reply :)

I thought the purpose of forums was to ask for help on issue you may need, and or offer assistance to others who may have an issue you have encountered and know the solution to. I'm sure he was aware that it may take some time to get a reply and if he posted here, then he was most likely perfectly fine with waiting for what we hope is some quality feedback and assistance. While I am a firm believer that you should first try to help yourself and do as much research as possible before posting your question to a forum, practically telling someone to hit search engines and not bother to post IMHO is just not cool. That gives the poster a feeling that he is asking the "dumb' question, and no question asked is dumb. The only dumb question is the one NOT asked. I'm new to the forums, but as in any forum we want to promote an open and positive place for people to ask questions.

**Steps off soapbox**

I thought the purpose of forums was to ask for help on issue you may need, and or offer assistance to others who may have an issue you have encountered and know the solution to. I'm sure he was aware that it may take some time to get a reply and if he posted here, then he was most likely perfectly fine with waiting for what we hope is some quality feedback and assistance. While I am a firm believer that you should first try to help yourself and do as much research as possible before posting your question to a forum, practically telling someone to hit search engines and not bother to post IMHO is just not cool. That gives the poster a feeling that he is asking the "dumb' question, and no question asked is dumb. The only dumb question is the one NOT asked. I'm new to the forums, but as in any forum we want to promote an open and positive place for people to ask questions.

**Steps off soapbox**

templar,

You are absolutely correct...this IS the place to ask questions. Please don't be discouraged but the wayward ill comments of the few.

Diiferent people, different ideas...
One message, different understanding ...

Member Avatar for Member #114696

ofcourse you are different as your avatar

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.