GithubHelp home page GithubHelp logo

mdn / web-dictaphone Goto Github PK

View Code? Open in Web Editor NEW
481.0 31.0 220.0 51 KB

A sample MDN app that uses getUserMedia and MediaRecorder API for recording audio snippets, and The Web Audio API for visualizations.

License: Creative Commons Zero v1.0 Universal

JavaScript 54.52% CSS 29.75% HTML 15.72%

web-dictaphone's Introduction

Web dictaphone

NOTE: This repository is archived and has been moved into the MDN Web Docs dom-examples repository under the media/web-dictaphone folder.

web-dictaphone's People

Contributors

chrisdavidmills avatar lixin-wei avatar mozilla-github-standards avatar sole avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

web-dictaphone's Issues

Error using Iphone (iOS)

Hi everyone, thank you very much for creating this great app.

I have no issues using it in Chrome or Firefox when they are in Android or Windows, but in iPhone, recordings give an Error, in both Chrome and Safari.

So it seems as if it's a problem related to iOS instead of a browser problem.

I wonder if you know about it and if by chance you know how to solve it.

Thank you very much,

Best,

Carlos

File duration?

Downloaded audio file does not have duration. Any solutions for this example?

CODE_OF_CONDUCT.md file missing

As of January 1 2019, Mozilla requires that all GitHub projects include this CODE_OF_CONDUCT.md file in the project root. The file has two parts:

  1. Required Text - All text under the headings Community Participation Guidelines and How to Report, are required, and should not be altered.
  2. Optional Text - The Project Specific Etiquette heading provides a space to speak more specifically about ways people can work effectively and inclusively together. Some examples of those can be found on the Firefox Debugger project, and Common Voice. (The optional part is commented out in the raw template file, and will not be visible until you modify and uncomment that part.)

If you have any questions about this file, or Code of Conduct policies and procedures, please see Mozilla-GitHub-Standards or email [email protected].

(Message COC001)

not recording long audios in Firefox

recordking ok in chrome, but in Firefox 87 it doesn't record audios longer than 6 - 7 seconds, the time changes sometimes audios are shorter. When recording it doesn't show any error. But once it finishes the audio is cut.

How to download the sound clip?

I noticed that the following code in index.html has been commented. How do I download the recorded sound clips? Thanks.

  <article class="clip">
    <audio controls></audio>
    <a href="">Download clip</a>
  </article>

latency issue

Hello, I want to record multiple tracks based on the tracks before. For example: In the first track I recorded a beatbox, and when recording the second track, the first track plays in the headphones and I record the lyrics in sync with it. When playing it both at the same time, I notice that the second track begins a few milliseconds later. Can this problem be fixed?

Heres the Code: https://www.regerapps.de/recorder/

Variables declaration without var keyword

In the app.js file on lines 135, 136 :

WIDTH = canvas.width
HEIGHT = canvas.height;

There are variables declaration without var keyword in uppercase.
Is it on purpose ?

Tks ~
Germain

Ability to close the stream once record stops

  • Add some code demostrating closing the mediaDevices, MediaStream when MediaRecorder stops.
  • Get the Blob withf the default mime encoding of the MediaRecorder using , MediaRecorder.requestData() . instead of having to manually get blob from chunks, to ensure compact data intergrity.

preload does not work with recorded audio, duration is NaN until full played first time

When we record a sound from the microphone, the recorded audio clip has not defined its .duration property, also tried with preload="metadata" or preload="auto" without success...
It seems that the recorded file has something wrong inside the file binary data that prevents the audio player, or the container to read its duration property...

How to reproduce:
Record an audio snippet from the microphone. Check that the player has not defined the "duration" for the file. audio.duration = NaN

Tried with diferent audio formats, like audio/ogg, audio/wav, audio/mpeg and audio/mp3
Play the file one time. Now you can check the duration is defined.
Is the problem in the stream, the blob or the chunks?

Voice is not recorded

I am trying to record voice using earphone or headphone but it is not working. Also it is working only on Firefox browser.

Recording is working if any music playing in the system.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.