pulseaudio
내 시스템에서는 .를 사용합니다 . tts 앱을 설치했는데 espeak
둘 flite
다 명령줄에서 호출하면 완벽하게 작동하지만 spd-say
. spd-say
Okular용 TTS 엔진을 구성하고 싶기 때문에 작동하려면 해당 엔진이 필요합니다 .
이것이 출력이다sudo systemctl status speech-dispatcherd.service
● speech-dispatcherd.service - Speech-Dispatcher an high-level device independent layer for speech synthesis.
Loaded: loaded (/usr/lib/systemd/system/speech-dispatcherd.service; disabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2019-01-18 00:30:18 IST; 2min 9s ago
Process: 1067 ExecStart=/usr/bin/speech-dispatcher -d (code=exited, status=1/FAILURE)
Jan 18 00:30:18 archlinux-hostname systemd[1]: Starting Speech-Dispatcher an high-level device independent layer for speech synthesis....
Jan 18 00:30:18 archlinux-hostname speech-dispatcher[1067]: [Fri Jan 18 00:30:18 2019 : 363344] speechd: Speech Dispatcher 0.8.8 starting
Jan 18 00:30:18 archlinux-hostname systemd[1]: speech-dispatcherd.service: Control process exited, code=exited, status=1/FAILURE
Jan 18 00:30:18 archlinux-hostname systemd[1]: speech-dispatcherd.service: Failed with result 'exit-code'.
Jan 18 00:30:18 archlinux-hostname systemd[1]: Failed to start Speech-Dispatcher an high-level device independent layer for speech synthesis..
이것이 출력이다journalctl -xe
➜ journalctl -xe
Jan 18 00:30:18 archlinux-hostname sudo[1064]: codingcoffee : TTY=pts/1 ; PWD=/home/codingcoffee ; USER=root ; COMMAND=/usr/bin/systemctl restart speech-dispatcherd.service
Jan 18 00:30:18 archlinux-hostname sudo[1064]: pam_unix(sudo:session): session opened for user root by codingcoffee(uid=0)
Jan 18 00:30:18 archlinux-hostname systemd[1]: Starting Speech-Dispatcher an high-level device independent layer for speech synthesis....
-- Subject: A start job for unit speech-dispatcherd.service has begun execution
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A start job for unit speech-dispatcherd.service has begun execution.
--
-- The job identifier is 4254.
Jan 18 00:30:18 archlinux-hostname speech-dispatcher[1067]: [Fri Jan 18 00:30:18 2019 : 363344] speechd: Speech Dispatcher 0.8.8 starting
Jan 18 00:30:18 archlinux-hostname systemd[1]: speech-dispatcherd.service: Control process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- An ExecStart= process belonging to unit speech-dispatcherd.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
Jan 18 00:30:18 archlinux-hostname systemd[1]: speech-dispatcherd.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- The unit speech-dispatcherd.service has entered the 'failed' state with result 'exit-code'.
Jan 18 00:30:18 archlinux-hostname systemd[1]: Failed to start Speech-Dispatcher an high-level device independent layer for speech synthesis..
-- Subject: A start job for unit speech-dispatcherd.service has failed
-- Defined-By: systemd
-- Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- A start job for unit speech-dispatcherd.service has finished with a failure.
--
-- The job identifier is 4254 and the job result is failed.
Jan 18 00:30:18 archlinux-hostname audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=speech-dispatcherd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=fail>
Jan 18 00:30:18 archlinux-hostname kernel: audit: type=1130 audit(1547751618.383:189): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=speech-dispatcherd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=>
Jan 18 00:30:18 archlinux-hostname sudo[1064]: pam_unix(sudo:session): session closed for user root
Jan 18 00:30:19 archlinux-hostname sudo[1124]: codingcoffee : TTY=pts/1 ; PWD=/home/codingcoffee ; USER=root ; COMMAND=/usr/bin/systemctl status speech-dispatcherd.service
Jan 18 00:30:19 archlinux-hostname sudo[1124]: pam_unix(sudo:session): session opened for user root by codingcoffee(uid=0)
Jan 18 00:30:19 archlinux-hostname sudo[1124]: pam_unix(sudo:session): session closed for user root
이것은 내 음성 스케줄러 구성 파일의 출력입니다.~/.config/speech-dispatcher/speechd.conf
LogLevel 3
LogDir "default"
DefaultRate 0
DefaultPitch 0
DefaultVolume 100
DefaultLanguage en
AudioOutputMethod pulse
DefaultModule espeak
Include "clients/*.conf"
답변1
아마도 다음 링크가 이 문제를 해결하는 데 도움이 될 수 있습니다.
중요한 것은 Okular가 이러한 모든 텍스트 읽기 도구가 작동하려면 [스캔된] 이미지가 아닌 텍스트를 확인해야 한다는 것입니다. PDF 파일에 텍스트가 있는지 확인하셨나요(텍스트를 복사하여 붙여넣기 가능)?
나는 내 자신의 경험이 없으며
spd-say
아는 사람이 구성하는 데 도움을 줄 수 있기를 바랍니다.