This example shows how to use Web APIs to send audio streams directly from any device microphone over the YARP network. In particular this application translates audio batches into Yarp::sig::Sound objects and then writes them on port /yarpjs/mic:o
.
Note. For security reasons, Chrome does not allow to access the audio stream from unsecure hosts (https Vs http). To bypass this issue you have two options:
- Use Firefox (which allows to access the audiostream also from unsecure domains)
- Use a self-signed SSL scure domain (see here for a workaround).