Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37886865
en ru br
ALT Linux repos
S:2.0.0.11-alt2
5.0: 0.9.5-alt0.M50.1
4.1: 0.9.6-alt5.M41.1
4.0: 0.9.6-alt5.M40.1

Group :: Development/Other
RPM: basic256

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: basic256-0.9.6-alt-fix-say-function.patch
Download


--- trunk/RunController.cpp.orig	2010-11-05 21:58:10 +0300
+++ trunk/RunController.cpp	2010-12-15 19:36:23 +0300
@@ -310,6 +310,18 @@ RunController::speakWords(QString text)
     }
 
     ::CoUninitialize();
+#else
+
+	QString voice = "";
+	QString localecode = QLocale::system().name();
+	QString pVoice = "/usr/share/espeak-data/voices/"+localecode.left(2);
+	QFileInfo fi(pVoice);
+	if (fi.exists()) {
+		voice = "-v "+localecode.left(2) + " ";
+	}
+	QString command = QString("espeak ") + voice + QString("\"") + text + QString("\"");
+	system(command.toUtf8());
+
 #endif
 #ifdef LINUX_ESPEAK
 	//QMessageBox::information( 0, "BASIC-256", QString("ESpeak"));
--- trunk/basic256.pro.orig	2010-12-15 19:12:08 +0300
+++ trunk/basic256.pro	2010-12-15 19:34:36 +0300
@@ -39,9 +39,9 @@ unix:!macx {
 	
 	## for the SAY command (LINUX) you need to choose one TTS engine - uncomment the one desired
 	## espeak library (causes problems with sound statement in 0.9.5i under ubuntu 9.10 - suggest flite)
-	DEFINES		+= 	LINUX_ESPEAK
-	INCLUDEPATH		+=	/usr/include/espeak
-	LIBS			+=	-lespeak
+	#DEFINES		+= 	LINUX_ESPEAK
+	#INCLUDEPATH		+=	/usr/include/espeak
+	#LIBS			+=	-lespeak
 
 	## flite library
 	#DEFINES			+= 	LINUX_FLITE
@@ -51,7 +51,7 @@ unix:!macx {
 	#LIBS			+=	-lflite_cmulex
 	#LIBS			+=	-lflite_usenglish
 	
-	LIBS			+=	-lm
+	#LIBS			+=	-lm
 
 	## include libraries for SDL audio for wav and sound output
 	DEFINES 		+= USESDL
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin