水解奶粉是什么意思| 右手掌心有痣代表什么| 惊讶的什么| red是什么颜色| 什么病不能吃豌豆| 香蕉不能和什么水果一起吃| 子宫憩室是什么| 梦见摘丝瓜有什么预兆| 新生儿屁多是什么原因| 梦见自己理发是什么意思| 夫妻都是o型血孩子是什么血型| 补牙属于口腔什么科| 知柏地黄丸治什么病| 伤口消毒用什么| 什么是事实婚姻| dha什么时候吃| 九重紫纪咏结局是什么| 摩羯座什么性格| 心什么诚什么| 威海有什么好玩的| 梅菜是什么菜晒干的| 甲状腺结节吃什么药| 大连是什么海| 补钙有什么好处| 相思什么意思| 什么什么如生| 鹅吃什么食物| 嗔恨心是什么意思| 八字不合是什么生肖| 阴部痒是什么原因| 未免是什么意思| 什么牌子的冰箱最好| 梦见捡到钱是什么预兆| 陈皮泡酒喝有什么功效和作用| 上海为什么叫魔都| 肛门痒擦什么药| 胃不舒服想吐吃什么药| 心心相什么| 多多益善的益是什么意思| 全科医生是什么意思| 一月来两次月经是什么原因| 惹是什么意思| 6541是什么药| 日柱国印是什么意思| 过敏挂什么科| 梨不能和什么一起吃| 海底有什么生物| 虎视眈眈是什么意思| 骨髓炎是什么病| 什么是菊粉| 粗粮是什么| 旅游的意义是什么| 喝黑苦荞茶有什么好处和坏处| ariel是什么意思| 撸铁是什么意思| 阳历三月是什么星座| 精油有什么功效| 西瓜不能和什么一起吃| 小鱼吃什么| 黄芪是什么味道| 淋巴细胞比率低是什么意思| 国防部长是什么级别| 母婴传播是什么意思| 子孙满堂是什么生肖| 形单影只什么意思| hvi是什么病| 晚上睡觉牙齿出血是什么原因| 黄山毛峰属于什么茶| 报复是什么意思| 过敏期间不能吃什么东西| 吃什么水果补肝养肝最有效| 4月15号是什么星座| 圣女是什么生肖| 百合花是什么颜色的| 咖啡什么时候喝最好| 烀是什么意思| 伤口结痂为什么会痒| 12月是什么座| 前列腺炎吃什么食物好| 春宵一刻值千金是什么意思| 闪光感是什么感觉| 月子期间可以吃什么水果| 奇异果是什么水果| 事倍功半的意思是什么| 反骨是什么意思| 荣辱与共是什么意思| 什么是预防医学| 打开心扉是什么意思| 怀孕梦见蛇是什么意思| 糖醇是什么意思| 02年是什么生肖| 上火吃什么药| 血红蛋白低说明什么| pending是什么意思| 阴道干燥是什么原因| 枕头太低有什么影响| 肠易激综合症什么症状| 减胎对另一个胎儿有什么影响| 甲状腺球蛋白抗体高是什么原因| 为什么不能空腹喝牛奶| 梦见修坟墓是什么预兆| 夜里睡觉手麻是什么原因| 牙龈发炎吃什么药| 女生的名字叫什么好听| 胃不好的人适合吃什么水果| icu病房是什么意思| 杆菌一个加号什么意思| 吃稀饭配什么菜好吃| iwc手表是什么档次| 日行一善下一句是什么| 脚底冰凉是什么原因| 甲状腺有血流信号是什么意思| 胆固醇高是什么原因引起| kipling是什么牌子| 早上起床口臭是什么原因| 每晚做梦是什么原因| 扑朔迷离什么意思| 腊肉和什么菜炒好吃| 吃辣的胃疼吃什么药| 淋巴滤泡增生用什么药能彻底治愈| 高线是什么| 什么食物含钾最高| 反胃是什么意思| gs是什么| 梦见前夫是什么兆头| 什么是马上风| 腰上长痘痘是什么原因| 泌尿系统感染吃什么消炎药| 龙生九子下一句是什么| 无缘无故头疼是什么原因| 十一月是什么星座| 人为什么会长痣| ipada1474是什么型号| 狼的天敌是什么动物| 酒干倘卖无什么意思| 八月十四是什么星座| 灵敏度是什么意思| 桡神经受损有什么恢复的方法| 白居易被称为什么| 吃什么升白细胞比较快| 菠菜补什么| 切糕为什么这么贵| 一班三检是指什么| 2018属什么生肖| 指甲有白点是缺什么| 希特勒为什么恨犹太人| 跳蚤怕什么东西| 什么是朱砂痣| 文化大革命是什么时候开始的| 柏拉图爱情是什么意思| 飞蚊症用什么药物治疗最好| 超能力是什么意思| 儿童过敏性鼻炎吃什么药好| 什么闻什么睹| 喜人是什么意思| 泥鳅什么人不能吃| 肉蒲团是什么| 儿童矮小挂什么科| 尿为什么是黄色的| 婴儿什么时候可以睡枕头| 吃什么药可以流产| 吃什么能降血压最有效| 6月20日是什么节日| 什么什么若狂| 查摆是什么意思| 超声波检查是什么检查| 喝酒过敏吃什么药| 女性缓解疲劳吃什么好| 阴道镜活检是什么意思| 八股是什么意思| 太阳鱼吃什么食物| 女人梦见老鼠什么征兆| 蓝风铃香水什么味道| 白带发黄有异味用什么药| 红花配绿叶是什么意思| 1927年属什么生肖| 吃秋葵有什么禁忌| 今天什么生肖冲什么生肖| 腱鞘炎在什么位置| 九出十三归指什么生肖| 洋葱炒什么| 舒字五行属什么的| 大佬什么意思| 眩晕挂号挂什么科| 胃炎吃什么消炎药| 心脏什么情况下需要支架| 高危hpv阳性是什么意思| 1919年属什么生肖| 结核抗体阴性代表什么| 益是什么意思| 嘴巴发苦是什么原因| 烟酰胺是什么东西| 法会是什么意思| 腰疼用什么药| 口腔癌早期有什么征兆| 头加一笔是什么字| 4五行属什么| 男的为什么喜欢男的| 211是什么意思| 司法警察是做什么的| 为什么会起湿疹| 视频是什么意思| 吃什么减肥效果最好最快| 头发容易油是什么原因| 最大的狗是什么品种| 月子餐吃什么| 10月份是什么星座| 贫血看什么科| 肌酐700多意味着什么| 1996属鼠的是什么命| 今年是什么年| 高密度脂蛋白胆固醇偏高是什么意思| 行房时间短吃什么药| 白细胞介素是什么| 乌鸡炖什么好吃| 血压高吃什么药| 凉粉是用什么做的| 父母有刑是什么意思| 产后第一次来月经是什么颜色| 门良念什么| 怀孕做梦梦到蛇是什么意思| 乌梅是什么水果做的| 辛属什么五行| 达字五行属什么| 蛋白尿吃什么药| 不可理喻什么意思| 蔓越莓有什么功效和作用| 7月29日是什么星座| 哈欠是什么意思| 不全纵隔子宫是什么意思| 肚子左下方是什么器官| 520是什么日子| 世界大同是什么意思| 头发里长痣代表什么| 缸垫呲了什么症状| 梦见自己掉牙齿是什么征兆| 备孕期间要注意什么| 婴幼儿湿疹用什么药膏最有效| 什么是肠漏| 甘油三酯高吃什么食物降得快| bg是什么| 雄五行属什么| 血小板高是什么问题| 大姨妈吃什么水果| c8是什么意思| 煮海带放什么容易烂| 洋酒兑什么饮料好喝| 兄弟左右来是什么生肖| m2是什么意思啊| 什么人需要做肠镜检查| 吃东西就打嗝是什么原因| 心脏除颤是什么意思| 佰草集适合什么年龄| 鼻窦炎用什么药效果最好| 孕妇喝柠檬水对胎儿有什么好处| 碳酸钠俗称什么| 肺结核有什么症状| 紫气东来什么意思| 娘是什么意思| 医院医务科是干什么的| 白头发多吃什么食物能变黑| 甲状腺实性结节什么意思| 一什么森林| 脚底板痛挂什么科| 百度Jump to content

现在俄罗斯卢布汇率报价多少?周二18日最新人民

From Wikipedia, the free encyclopedia
(Redirected from Web Audio API)
百度   2017年全国一共上映397部电影,电影总票房达到亿元,其中国产电影307部,电影票房亿元,占票房总额的%。

HTML audio is a subject of the HTML specification, incorporating audio, including speech to text, all in the browser.

<audio> element

[edit]

The <audio> element represents a sound, or an audio stream. It is commonly used to play back a single audio file within a web page, showing a GUI widget with play/pause/volume controls.

The <audio> element has these attributes: the music

  • global attributes (accesskey; class; contenteditable; contextmenu; dir; draggable; dropzone; hidden; id; lang; spellcheck; style; tabindex; title; translate)
  • autoplay = "autoplay" or "" (empty string) or empty
    Instructs the User-Agent to automatically begin playback of the audio stream as soon as it can do so without stopping.
  • preload = "none" or "metadata" or "auto" or "" (empty string) or empty
    Represents a hint to the User-Agent about whether optimistic downloading of the audio stream itself or its metadata is considered worthwhile.
    • "none": Hints to the User-Agent that the user is not expected to need the audio stream, or that minimizing unnecessary traffic is desirable.
    • "metadata": Hints to the User-Agent that the user is not expected to need the audio stream, but that fetching its metadata (duration and so on) is desirable.
    • "auto": Hints to the User-Agent that optimistically downloading the entire audio stream is considered desirable.
  • controls = "controls" or "" (empty string) or empty
    Instructs the User-Agent to expose a user interface for controlling playback of the audio stream.
  • loop = "loop" or "" (empty string) or empty
    Instructs the User-Agent to seek back to the start of the audio stream upon reaching the end.
  • mediagroup = string
    Instructs the User-Agent to link multiple videos and/or audio streams together.
  • muted = "muted" or "" (empty string) or empty
    Represents the default state of the audio stream, potentially overriding user preferences.
  • src = non-empty [URL] potentially surrounded by spaces
    The URL for the audio stream.

Example:

Supporting browsers

[edit]

On PC:

  • Google Chrome
  • Internet Explorer 9
  • Firefox 3.5
  • Opera 10.5
  • Safari 3.1

On mobile devices:

  • Android Browser 2.3
  • Google Chrome
  • Internet Explorer Mobile 9
  • Safari 4
  • Firefox
  • Opera Mobile 11

Supported audio coding formats

[edit]

The adoption of HTML audio, as with HTML video, has become polarized between proponents of free and patent-encumbered formats. In 2007, the recommendation to use Vorbis was retracted from the HTML5 specification by the W3C together with that to use Ogg Theora, citing the lack of a format accepted by all the major browser vendors.

Apple and Microsoft support the ISO/IEC-defined formats AAC and the older MP3. Mozilla and Opera support the free and open, royalty-free Vorbis format in Ogg and WebM containers, and criticize the patent-encumbered nature of MP3 and AAC, which are guaranteed to be “non-free”. Google has so far provided support for all common formats.

Most AAC files with finite length are wrapped in an MPEG-4 container (.mp4, .m4a), which is supported natively in Internet Explorer, Safari, and Chrome, and supported by the OS in Firefox and Opera.[citation needed] Most AAC live streams with infinite length are wrapped in an Audio Data Transport Stream container (.aac, .adts), which is supported by Chrome, Safari, Firefox and Edge.[1][2][3]

Many browsers also support uncompressed PCM audio in a WAVE container.[4]

In 2012, the free and open royalty-free Opus format was released and standardized by IETF. It is supported by Mozilla, Google, Opera and Edge.[4][5][6][7]

This table documents the current support for audio coding formats by the <audio> element.

Formats supported by different web browsers
Format Container MIME type Chrome Internet Explorer Edge Firefox Opera Safari
PCM WAV audio/wav Yes No Yes Yes, in v3.5[citation needed] Yes, in v11.00 Yes, in v3.1
MP3 MP3 audio/mpeg Yes[8] Yes, in IE9 Yes Yes, in v71[9] Yes[8] Yes, in v3.1
AAC MP4 audio/mp4 Yes Yes, in IE9 Yes From OS[a] Yes Yes
ADTS[b] audio/aac
audio/aacp
Yes No Yes From OS[a] in v45.0[11][12] Yes Yes
Vorbis Ogg audio/ogg Yes, in v9 No In v79[13]
In v17, with Web Media Extensions[14]
Yes, in v3.5[15] Yes, in v10.50 With Xiph QuickTime Components (macOS 10.11 and earlier)
WebM audio/webm Yes No In v79[13]
In v17, with Web Media Extensions[14]
Yes, in v4.0[16] Yes, in v10.60 No
Opus Ogg audio/ogg Yes, in v25
(in v31 for Windows)
No In v79[17]
In v17, with Web Media Extensions[14]
Yes, in v15.0[18] Yes, in v14 No
WebM audio/webm Yes No In v79[17]
In v17, with Web Media Extensions[14]
Yes, in v28.0[19] Yes Yes, in Safari 15+ and macOS Monterey[20][21]
CAF audio/x-caf No No No No No Yes, in Safari 11 and macOS High Sierra
FLAC FLAC audio/flac Yes, in v56[22] No Yes, in v16[23] Yes, in v51[24] Yes Yes, in v11[25]
Ogg audio/ogg Yes, in v56[22] No In v79[26]
In v17, with Web Media Extensions[14]
Yes, in v51[24] Yes No

Web Audio API and MediaStream Processing API

[edit]

The Web Audio API specification developed by W3C describes a high-level JavaScript API for processing and synthesizing audio in web applications. The primary paradigm is of an audio routing graph, where a number of AudioNode objects are connected together to define the overall audio rendering. The actual processing will primarily take place in the underlying implementation (typically optimized Assembly / C / C++ code), but direct JavaScript processing and synthesis is also supported.[27]

Mozilla's Firefox browser implements a similar Audio Data API extension since version 4, implemented in 2010 [28] and released in 2011, but Mozilla warns it is non-standard and deprecated, and recommends the Web Audio API instead.[29] Some JavaScript audio processing and synthesis libraries such as Audiolet Archived 2025-08-14 at the Wayback Machine support both APIs.

The W3C Audio Working Group is also considering the MediaStream Processing API specification developed by Mozilla.[30] In addition to audio mixing and processing, it covers more general media streaming, including synchronization with HTML elements, capture of audio and video streams, and peer-to-peer routing of such media streams.[31]

Supporting browsers

[edit]

On PC:

On mobile devices:

  • Google Chrome for Android 28 (Enabled by default since 29) and Apple iPads
  • Safari 6 (Has restrictions on use (Muted unless user called))
  • Firefox 23 (Enabled by default since 25)
  • Tizen

Web Speech API

[edit]

The Web Speech API aims to provide an alternative input method for web applications (without using a keyboard). With this API, developers can give web apps the ability to transcribe voice to text, from the computer's microphone. The recorded audio is sent to speech servers for transcription, after which the text is typed out for the user. The API itself is agnostic of the underlying speech recognition implementation and can support both server based as well as embedded recognizers.[34] The HTML Speech Incubator group has proposed the implementation of audio-speech technology in browsers in the form of uniform, cross-platform APIs. The API contains both:[35]

  • Speech Input API
  • Text to Speech API

Google integrated this feature into Google Chrome in March 2011.[36] Letting its users search the web with their voice with code like:

Supporting browsers

[edit]

See also

[edit]

Notes

[edit]
  1. ^ a b There is no native support for the AAC codec due to licensing reasons. Decoding of audio files requires the host OS to provide a compatible library.[10]
  2. ^ An MPEG-4 file contains a header that includes metadata followed by "tracks" which can include video as well as audio data, for example, H.264 encoded Video and AAC encoded Audio. ADTS in contrast is a streaming format consisting of a series of frames, each frame having a header followed by the AAC data.[2]

References

[edit]
  1. ^ "MP4 container · Issue #95 · karlheyes/icecast-kh". GitHub. Retrieved 2025-08-14.
  2. ^ a b "Technical Note TN2236: High-Efficiency Advanced Audio Coding (HE-AAC)".
  3. ^ "1224887 – Implement OpenMax IL AAC audio decoding client".
  4. ^ a b "Media type and format guide: image, audio, and video content – Web media technologies | MDN". developer.mozilla.org.
  5. ^ "September 11, 2012: Opus audio codec is now RFC6716, Opus 1.0.1 reference source released".
  6. ^ "It's Opus, it rocks and now it's an audio codec standard! – Mozilla Hacks – the Web developer blog".
  7. ^ "WebM, VP9 and Opus Support in Microsoft Edge – Microsoft Edge Dev BlogMicrosoft Edge Dev Blog". blogs.windows.com. 18 April 2016. Retrieved 2025-08-14.
  8. ^ a b "Enable mp3 support in Chromium". Google. Retrieved 2025-08-14.
  9. ^ "Firefox 71.0 release notes". Mozilla. December 3, 2019.
  10. ^ "Media type and format guide: image, audio, and video content". Mozilla Developer Network. Mozilla. Retrieved 2025-08-14.
  11. ^ "1190341 - audio/aacp shoutcast is not supported".
  12. ^ "1169212 - Create ADTSDemuxer, a MediaDataDemuxer".
  13. ^ a b "Platform Status – Microsoft Edge Developer". Archived from the original on 2025-08-14. Retrieved 2025-08-14.
  14. ^ a b c d e "Introducing the Web Media Extension Package with OGG Vorbis and Theora support for Microsoft Edge". Microsoft Edge Dev Blog. Microsoft. December 5, 2017.
  15. ^ "Firefox Notes - Desktop".
  16. ^ "Firefox Notes - Desktop".
  17. ^ a b "Platform Status – Microsoft Edge Developer". developer.microsoft.com. Archived from the original on 2025-08-14. Retrieved 2025-08-14.
  18. ^ "Firefox Notes - Desktop".
  19. ^ "Firefox 28.0, See All New Features, Updates and Fixes".
  20. ^ Simmons, Jen (October 26, 2021). "New WebKit Features in Safari 15".
  21. ^ "Apple Developer Documentation". developer.apple.com.
  22. ^ a b "FLAC codec support for <audio> and WebAudio". Chrome Platform Status. Retrieved 2025-08-14.
  23. ^ "Platform Status – Microsoft Edge Developer". developer.microsoft.com. Archived from the original on 2025-08-14. Retrieved 2025-08-14.
  24. ^ a b "Firefox 51 for developers". Mozilla Developer Network. Retrieved 2025-08-14.
  25. ^ Chaim Gartenberg (June 6, 2017). "Apple reportedly adds support for FLAC lossless audio in iOS 11". The Verge.
  26. ^ "Platform Status – Microsoft Edge Developer". Archived from the original on 2025-08-14. Retrieved 2025-08-14.
  27. ^ Chris Rogers (2025-08-14). "Web Audio API". W3C. Archived from the original on 2025-08-14. Retrieved 2025-08-14.{{cite web}}: CS1 maint: bot: original URL status unknown (link)
  28. ^ "Audio Data API".
  29. ^ "Introducing the Audio API extension". Mozilla Developer Network. Mozilla. 2025-08-14. Archived from the original on 2025-08-14. Retrieved 2025-08-14.
  30. ^ "Audio Processing API". W3C. 2025-08-14. Archived from the original on 2025-08-14. Retrieved 2025-08-14.{{cite web}}: CS1 maint: bot: original URL status unknown (link)
  31. ^ Robert O'Callahan (2025-08-14). "MediaStream Processing API". W3C. Retrieved 2025-08-14.
  32. ^ "Web Audio API is now available in Chrome from Chris Rogers on 2025-08-14 (public-xg-audio@w3.org from February 2011)". lists.w3.org. Retrieved 2025-08-14.
  33. ^ Scott Gilbertson (2025-08-14). "Chrome 14 Adds Better Audio, 'Native Client' Support". Webmonkey. Wired. Retrieved 2025-08-14.
  34. ^ "API draft". Retrieved January 28, 2012.
  35. ^ "HTML5 Speech API". Retrieved January 28, 2012.
  36. ^ "Talking to your computer". Retrieved January 28, 2012.
  37. ^ "Web Speech API – Web APIs | MDN". Retrieved May 20, 2024.
  38. ^ "Firefox 49 for developers – Mozilla | MDN". Retrieved May 20, 2024.
  39. ^ "Web Speech API – Web APIs | MDN". Retrieved May 20, 2024.
[edit]
3月7日是什么星座 客厅用什么灯具好 二月二十三日是什么星座 阿胶什么时候吃效果最好 任督二脉是什么意思
人老放屁是什么原因 蓝色配什么颜色最好看 一什么金光 老年人心慌是什么原因 椰土是什么
耍朋友是什么意思 梦见摘桑葚是什么意思 玉越戴越亮是什么原因 尿酸高是什么病 喜欢喝冰水是什么原因
发热出汗是什么原因 叶酸什么时候吃最好 取其轻前一句是什么 6.17什么星座 铁瓷是什么意思
种田文什么意思hcv9jop0ns1r.cn 什么泡面最好吃hcv9jop0ns1r.cn 女人吃什么最补子宫baiqunet.com 人质是什么意思hcv7jop4ns7r.cn 丙寅五行属什么hcv7jop4ns5r.cn
圆坟是什么意思hcv8jop5ns0r.cn 屁股上长痘是什么原因bfb118.com 胚发育成什么hcv8jop9ns4r.cn 易烊千玺原名叫什么hcv9jop2ns4r.cn 什么会引起高血压hcv8jop1ns7r.cn
孕妇耳鸣是什么原因引起的zhongyiyatai.com 女人吃人参有什么好处hcv8jop0ns2r.cn 口球是什么hcv8jop2ns2r.cn or什么意思hcv9jop7ns0r.cn 波罗蜜多什么意思huizhijixie.com
什么的风雨hcv9jop4ns4r.cn 92年1月属什么生肖hcv8jop7ns4r.cn 硝石是什么hcv9jop2ns4r.cn 罗文和甄妮什么关系hcv9jop2ns5r.cn 虾和什么蔬菜搭配最好hcv7jop5ns2r.cn
百度