AudioHack | PubCamp West Audio Hack
kandi X-RAY | AudioHack Summary
kandi X-RAY | AudioHack Summary
Document Cloud, for audio. Question: Can we promote engagement with local government by giving users and journalists the ability to easily create and serve annotations from public meetings?. A project of Hacks & Hackers LA at PubCamp West, hosted at KPCC on August 20-21, 2011.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of AudioHack
AudioHack Key Features
AudioHack Examples and Code Snippets
Community Discussions
Trending Discussions on AudioHack
QUESTION
I have followed a tutorial which records audio for 3 seconds and automatically plays it back. It stored the audio in an array and turns into into a URL. I've added a button with the audio play function in it. So when you press the button it records and plays the audio automatically. My question is how can I add a second button to play and replay the audio. So I don't want it to play automatically when after it finished recording I only want it to play when a button is pressed.
It is all plain JavaScript. Thanks in advance.
...ANSWER
Answered 2020-May-10 at 20:58I believe you can do this by storing the audio in a global variable. Remove the audio.play()
. Did you know p5.js has a beautiful p5.sound library that makes this super easy? https://p5js.org/reference/#/p5.SoundRecorder
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install AudioHack
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page