Questions tagged [html5-audio]

The audio element is used to embed sound content in an HTML or XHTML document. The audio element was added as part of HTML5.

HTML5 defines a new element which specifies a standard way to embed an audio file on a web page: the <audio> element.

The control attribute adds audio controls, like play, pause, and volume.
You should also insert text content between the <audio> and </audio> tags for browsers that do not support the <audio> element.
The <audio> element allows multiple <source> elements. <source> elements can link to different audio files. The browser will use the first recognized format.

Read on at w3c HTML5 Audio. More information can also be found on Wikipedia.

Related Articles:

3529 questions
1
vote
1 answer

Html audio player audio stops in the middle

I am using simple html audio player here: Works fine in windows, mac safari. Also works fine in IPhone5s. But works partially in higher version of iPhone device (iPhone 7). Audio stops in the…
selva
  • 184
  • 2
  • 3
  • 16
1
vote
1 answer

Render audio in HTML from numpy array

To render image in HTML from numpy array, I can do def numpy_to_b64(array): im_pil = Image.fromarray(array) buff = BytesIO() im_pil.save(buff, format="png") im_b64 = base64.b64encode(buff.getvalue()).decode("utf-8") return…
Francis
  • 6,416
  • 5
  • 24
  • 32
1
vote
1 answer

How do I change audio source after changing slides?

So I've just started using the Slick Slider. It works pretty well but I'm having trouble changing the src in the html5 audioplayer after I switch slides. I have no clue how to go about this function. There are two carousels that are in sync with one…
jmwhite132
  • 63
  • 2
  • 11
1
vote
1 answer

How to lock (or make impossible) media downloads from web site

When I go to other websites like Soundcloud, audiomack... I can see the link of the audio from the web dev tool [from Firefox], if I click those links I can download the songs. Why from Spotify I can't play the downloaded songs, but the browser can?…
user3502626
  • 838
  • 11
  • 34
1
vote
1 answer

How to autoplay audio when the countdown timer is finished?

I want to play a sound after the countdown timer is done. Normally I will do it using this peace of code var audio = new Audio('path to file.mp3'); audio.play(); But I get the following error Unhandled Promise Rejection: NotAllowedError: The…
Eve
  • 61
  • 2
  • 9
1
vote
1 answer

chrome adEventListner not wotking on notification sound

I am trying to add audio on load notification on chrome. My Js code below. it's working fine on firefox but sometimes on chrome it's not running m error Uncaught (in promise) DOMException audio_notice = new…
Lemon Kazi
  • 3,308
  • 2
  • 37
  • 67
1
vote
3 answers

Why does html audio played by a web host only play when submit button is pressed

I was writing an html code with the following code: I used an
user11221449
1
vote
1 answer

How to parse and play Blob/Binary data from database in Angular 5

In my Angular 5 application, I am retrieving data which is stored as VARBINARY(MAX) in SQL Server database. It looks like this in the database field: 0xFEA47E451A40AE4571E51F... When I retrieve it from database using a GET call via .NET WebAPI, it…
Uzair A.
  • 1,586
  • 2
  • 14
  • 30
1
vote
0 answers

Audio in HTML5: What happens if it fail to load? What is the default timeout? How to implement your own timeout?

For HTML5 audio, are there any timeout? If so, what is the default timeout time? How do i set my own timeout?
man
  • 113
  • 9
1
vote
1 answer

Web Audio API merging audio in single channel doesn't fully work

I have a video and a WebRTC audio stream and want to use Web Audio API to send the audio from the video to the Left channel, while the WebRTC to the right channel. So basically I'm doing: video = document.getElementsByTagName("video")[0] video.src =…
ChrisGeo
  • 3,807
  • 13
  • 54
  • 92
1
vote
1 answer

Text to Speech Audio not working synchronously in browser

I'm using https://responsivevoice.org for queue management system. my problem is audio is overlapping. how to fix this problem. $.ajax({ url: 'DisplayDataRead', type: 'post', dataType: 'json', headers: { 'X-CSRF-TOKEN':…
Thanushka
  • 381
  • 2
  • 5
  • 14
1
vote
3 answers

Access to repetitive tags in jQuery

So I've got this piece of HTML (it's mp3 player):
Iwnow
  • 143
  • 2
  • 5
  • 12
1
vote
1 answer

Stop icecast player from falling behind when paused

Is there a way that when my icecast player is paused and played it is back live rather than falling behind and playing from where it was paused? Thanks
Hannah
  • 11
  • 1
1
vote
1 answer

audio element not playing

I have an assignment to create an audio visualizer, but for whatever reason I cannot figure out how to play the audio in my code. I replicated the code from the previous assignment, which has a working audio element, but it is not playing for some…
Flopmind
  • 29
  • 5
1
vote
1 answer

Is it possible to embed an audio file in the html output of the Sphinx documentation tool?

There probably isn't a specific directive for embedding audio files in the html output, but is it possible to at least embed an html code that does this, such as:
YettiMG
  • 23
  • 3
1 2 3
99
100