Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
efc971ba
Commit
efc971ba
authored
Feb 21, 2011
by
James Goppert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Flite fixed for unix and cmake.
parent
b72ed549
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
FindFlite.cmake
CMakeModules/FindFlite.cmake
+12
-1
GAudioOutput.cc
src/GAudioOutput.cc
+1
-1
No files found.
CMakeModules/FindFlite.cmake
View file @
efc971ba
FIND_PATH
(
FLITE_INCLUDE_DIR flite/flite.h
)
FIND_LIBRARY
(
FLITE_LIBRARIES NAMES flite
)
FIND_LIBRARY
(
FLITE_MAIN_LIB NAMES flite
)
FIND_LIBRARY
(
FLITE_CMULEX_LIB NAMES flite_cmulex
)
FIND_LIBRARY
(
FLITE_CMU_US_KAL_LIB NAMES flite_cmu_us_kal
)
FIND_LIBRARY
(
FLITE_US_ENGLISH_LIB NAMES flite_usenglish
)
SET
(
FLITE_LIBRARIES
${
FLITE_MAIN_LIB
}
${
FLITE_CMULEX_LIB
}
${
FLITE_CMU_US_KAL_LIB
}
${
FLITE_US_ENGLISH_LIB
}
)
IF
(
FLITE_INCLUDE_DIR AND FLITE_LIBRARIES
)
SET
(
FLITE_FOUND TRUE
)
...
...
src/GAudioOutput.cc
View file @
efc971ba
...
...
@@ -189,7 +189,7 @@ bool GAudioOutput::say(QString text, int severity)
file
.
setFileTemplate
(
"XXXXXX.wav"
);
if
(
file
.
open
())
{
cst_voice
*
v
=
new_voice
(
);
cst_voice
*
v
=
register_cmu_us_kal
(
NULL
);
cst_wave
*
wav
=
flite_text_to_wave
(
text
.
toStdString
().
c_str
(),
v
);
// file.fileName() returns the unique file name
cst_wave_save
(
wav
,
file
.
fileName
().
toStdString
().
c_str
(),
"riff"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment