Skip to content

Create a tone, play it back and record it simultaneously  #2618

@Adazus

Description

@Adazus

Hello community,

I have been looking for a solution to the following problem for some time now:
I am not able to:

  • generate a sine tone
  • output it via the speakers
    and at the same time (this is the issue)
  • start a recording via microphone and record the (emitted) sine tone of the oscillator.

In other words:
All ambient sounds are recorded by the microphone except the frequency generated by the oscillator reproduced by the speaker.

General question:
Is it with web-audio-api basically possible to generate a frequency, output it via the loudspeaker and record it by microphone at the same time?

On the demo from “borismus” the issue is visible:
https://borismus.github.io/spectrogram/
The tone generated by clicking on the screen (red line) is not displayed in the spectrogram.

Many thanks in advance.
Best regards
Adazus

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions