[espeak-ng:master] new issue: What is expected value for -d option? Document -d expects device index not device name #github

espeak-ng@groups.io Integration <espeak-ng@...>
 

[espeak-ng:master] New Issue Created by guest271314:
#696 What is expected value for -d option? Document -d expects device index not device name

List devices

$ pactl list short sources
0	alsa_output.pci-0000_00_1b.0.analog-stereo.monitor	module-alsa-card.c	s16le 2ch 44100Hz	RUNNING
1	alsa_input.pci-0000_00_1b.0.analog-stereo	module-alsa-card.c	s16le 2ch 44100Hz	RUNNING

The suggested value at https://github.com/espeak-ng/espeak-ng/issues/99#issuecomment-272613882

On some systems, the default audio device does not work. Because of this, in espeak-ng you can use the -d DEVICE_NAME option, e.g. espeak-ng -d sysdefault.

outputs an error at *nix

$ espeak-ng -d sysdefault 'test'
ALSA lib pcm_dmix.c:1052:(snd_pcm_dmix_open) unable to open slave
error: No such file or directory

Using device name output an error

$ espeak-ng -d alsa_output.pci-0000_00_1b.0.analog-stereo.monitor 'test'
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
error: No such file or directory

Using index does not output error

$ espeak-ng -d 0 'test test test test test test test test test test'

The value expected following -d option is not clearly detailed. Kindly update the man pages, -h output, and relevant documentation to reflect the value expected for -d device option.

Related https://github.com/espeak-ng/espeak-ng/issues/554

Join espeak-ng@groups.io to automatically receive all group messages.