Adding linux speech support

master
Mohammad Shoaib 2022-01-28 18:12:27 +05:30
parent 7771175ef9
commit 4628dce7bb
5 changed files with 1217 additions and 1 deletions

View File

@ -68,7 +68,7 @@ namespace stardew_access.Game
if (terrain != null)
toSpeak = terrain;
}
else if ( Game1.currentLocation.getLargeTerrainFeatureAt(x, y) != null)
else if ( Game1.currentLocation.getLargeTerrainFeatureAt(x, y) != null )
{
toSpeak = "Bush";
}

View 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()

View 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 *

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1 @@
SPD_SPAWN_CMD = "/usr/local/bin/speech-dispatcher"