You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • I'm afraid not. You've basically got two methods of using audio:

    One-way

    Using audio_serial_write() - there's a bit of a delay when sending a command as it's got to wait for the capacitor to charge up, but you don't need any special permissions and it only uses CPU on your PC when sending.

    Two-way

    This obviously needs access to the mic, and so needs you to click 'ok' when the web browser prompts you - and it uses CPU on your PC all the time, because it's constantly analysing the waveform.

    It uses this code - however it depends on stuff in 'EspruinoTools'. It could easily be extracted though, so I'd be interested in a pull request if anyone wanted to pull it out into a self-contained file...

About

Avatar for Gordon @Gordon started