[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Force speechd to send audio to wireless headset?
From: |
Raphaël POITEVIN |
Subject: |
Force speechd to send audio to wireless headset? |
Date: |
Fri, 27 Jul 2018 08:02:32 +0200 |
Hi,
On 07/26/2018 06:05 AM, Luke Yelavich wrote:
> if using PulseAudio, you can either use I think its the pacmd command from a
> terminal to change things, or you can use the pavucontrol GUI utility to
> change the output.
If you just want to have speech-dispatcher in your headphone and if it
is viewed as a sound card you can set environnement variables before
running speech-dispatcher as follow:
export PULSE_SOURCE=$(pactl list | grep -A2 'Source #' | grep -Eo 'Name:
alsa_input.usb-Creative_Technology_Ltd_SB_X-Fi_Surround_5.1_Pro_000001U1-00.analog-stereo'
| cut -d" " -f2)
pactl list source and sink by numbers #0 #1 etc.
The same with sink:
export PULSE_SINK=$(pactl list | grep -A2 'Sink #' | grep -Eo 'Name:
alsa_output.usb-Creative_Technology_Ltd_SB_X-Fi_Surround_5.1_Pro_000001U1-00.analog-stereo'
| cut -d" " -f2)
then run speech-dispatcher.
Regards,
Rapha?l