rserota / wad

Web Audio DAW. Use the Web Audio API for dynamic sound synthesis. It's like jQuery for your ears.
MIT License
1.9k stars 160 forks source link

Source Typing Error #156

Open LAsoul88 opened 2 months ago

LAsoul88 commented 2 months ago

Describe the bug A clear and concise description of what the bug is. Following the instructions for the pitch detection section, I am supposed to create a voice like so:

const voice = new Wad({source: 'mic'});

TypeScript gives me an error saying that 'mic' is not a supported type.

Expected behavior A clear and concise description of what you expected to happen. The source property should accept 'mic' as a value to grab audio from one of the device's accessible microphones.

To Reproduce Include the smallest possible code snippet that reproduces this bug.

const voice = new Wad({source: 'mic'});

Screenshots If applicable, add screenshots to help explain your problem.

Screenshot 2024-09-02 at 6 57 19 PM

Device (please complete the following information):

Additional context Add any other context about the problem here.