Adding linux speech support
This commit is contained in:
12
stardew-access/LinuxSpeech/libspeechd.py
Normal file
12
stardew-access/LinuxSpeech/libspeechd.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from multiprocessing.connection import wait
|
||||
from threading import Thread
|
||||
from time import time
|
||||
import speechd
|
||||
import time
|
||||
|
||||
client = speechd.SSIPClient('test')
|
||||
client.speak("Hello World! this is yusuf")
|
||||
time.sleep(1)
|
||||
client.stop()
|
||||
client.speak("No this is shoaib")
|
||||
client.close()
|
17
stardew-access/LinuxSpeech/speechd/__init__.py
Normal file
17
stardew-access/LinuxSpeech/speechd/__init__.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# Copyright (C) 2001, 2002 Brailcom, o.p.s.
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU Lesser General Public License as published by
|
||||
# the Free Software Foundation; either version 2.1 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU Lesser General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public License
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
from .client import *
|
||||
|
1186
stardew-access/LinuxSpeech/speechd/client.py
Normal file
1186
stardew-access/LinuxSpeech/speechd/client.py
Normal file
File diff suppressed because it is too large
Load Diff
1
stardew-access/LinuxSpeech/speechd/paths.py
Normal file
1
stardew-access/LinuxSpeech/speechd/paths.py
Normal file
@@ -0,0 +1 @@
|
||||
SPD_SPAWN_CMD = "/usr/local/bin/speech-dispatcher"
|
Reference in New Issue
Block a user