V
V
vitaly_742019-08-06 01:47:54
Node.js
vitaly_74, 2019-08-06 01:47:54

Is it possible to use a microphone as a source of two audio streams?

Good afternoon!
I need to connect vue-speech-streaming to a site to transcribe text. I also want to use WebRTC broadcasts on the site. Is it possible to create two audio streams - one for google speech, the other for webRTC from the same microphone? Will the browser allow this? Two streams because I still don’t know how to pull the audio stream out of webRTC (I’m connecting a third-party service).

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Daniil Bratukhin, 2019-08-06
@vitaly_74

You can, but there can be problems if the stream comes from another device through a P2P connection. For example, video cannot be processed in canvas webgl context - I don’t know for sure about audio, but keep in mind if anything :) You can capture media from the device via getUserMedia as many times as you like, the stream itself can also be cloned more than once.

V
Victor L, 2017-12-11
@HovardRork

and if so
var $modal =`#modal${String($(this).attr("id"))}`

O
oh, 2017-12-11
well @AnneSmith

extra quotes

T
ThunderCat, 2017-12-11
@ThunderCat

If this is an attempt to form an object identifier to be called in a jquery selector then:

var modal = "#modal" + String($(this).attr("id"));
$(modal).doStuff(...)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question