Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
qgroundcontrol
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Valentin Platzgummer
qgroundcontrol
Commits
efc971ba
Commit
efc971ba
authored
14 years ago
by
James Goppert
Browse files
Options
Downloads
Patches
Plain Diff
Flite fixed for unix and cmake.
parent
b72ed549
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeModules/FindFlite.cmake
+12
-1
12 additions, 1 deletion
CMakeModules/FindFlite.cmake
src/GAudioOutput.cc
+1
-1
1 addition, 1 deletion
src/GAudioOutput.cc
with
13 additions
and
2 deletions
CMakeModules/FindFlite.cmake
+
12
−
1
View file @
efc971ba
FIND_PATH
(
FLITE_INCLUDE_DIR flite/flite.h
)
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
)
IF
(
FLITE_INCLUDE_DIR AND FLITE_LIBRARIES
)
SET
(
FLITE_FOUND TRUE
)
SET
(
FLITE_FOUND TRUE
)
...
...
This diff is collapsed.
Click to expand it.
src/GAudioOutput.cc
+
1
−
1
View file @
efc971ba
...
@@ -189,7 +189,7 @@ bool GAudioOutput::say(QString text, int severity)
...
@@ -189,7 +189,7 @@ bool GAudioOutput::say(QString text, int severity)
file
.
setFileTemplate
(
"XXXXXX.wav"
);
file
.
setFileTemplate
(
"XXXXXX.wav"
);
if
(
file
.
open
())
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
);
cst_wave
*
wav
=
flite_text_to_wave
(
text
.
toStdString
().
c_str
(),
v
);
// file.fileName() returns the unique file name
// file.fileName() returns the unique file name
cst_wave_save
(
wav
,
file
.
fileName
().
toStdString
().
c_str
(),
"riff"
);
cst_wave_save
(
wav
,
file
.
fileName
().
toStdString
().
c_str
(),
"riff"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment