Re: [mediacapture-output] Directing Web Speech API audio to a specific output device? (#102)

At Linux this is the sink input device that should be capturedto get a `MediaStreamTrack` of speech synthesis output at Linux. Note, it might be necessary to call `speechSynthesis.getVoices()` first to spawn a persistent conmmunication with `speech-dispatcher-espeak-ng` for the device to be listed by 

`$ pactl list sink-inputs

..

Sink Input #190
 Driver: protocol-native.c
 Owner Module: 14
 Client: 177
 Sink: 4
 Sample Specification: s16le 1ch 44100Hz
 Channel Map: mono
 Format: pcm, format.sample_format = "\"s16le\""  format.rate = "44100"  format.channels = "1"  format.channel_map = "\"mono\""
 Corked: no
 Mute: no
 Volume: mono: 65536 / 100% / 0.00 dB
         balance 0.00
 Buffer Latency: 0 usec
 Sink Latency: 15828 usec
 Resample method: copy
 Properties:
  media.name = "playback"
  application.name = "speech-dispatcher-espeak-ng"
  native-protocol.peer = "UNIX socket client"
  native-protocol.version = "33"
  application.process.id = "28465"
  application.process.user = "ubuntu-studio"
  application.process.host = "ubuntu-studio"
  application.process.binary = "sd_espeak-ng"
  application.language = "C"
  window.x11.display = ":0.0"
  application.process.machine_id = "8af6debee19c4bc0958bbd7a607e926d"
  application.process.session_id = "c1"
  module-stream-restore.id = "sink-input-by-application-name:speech-dispatcher-espeak-ng"
```

where to configure the module 

`$ sdp-conf`

can be run, then `~/.config/speech-dispatcher/modules/espeak-ng.conf` can be edited, to for example, enable voice variants.

-- 
GitHub Notification of comment by guest271314
Please view or discuss this issue at https://github.com/w3c/mediacapture-output/issues/102#issuecomment-691611501 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Sunday, 13 September 2020 04:42:42 UTC