Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
ab5278c0
提交
ab5278c0
authored
6月 12, 2014
作者:
Chris Rienzo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
stereo: fix mod_flite, mod_ssml, mod_unimrcp compile errors
上级
97cc0898
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
5 行增加
和
4 行删除
+5
-4
mod_flite.c
src/mod/asr_tts/mod_flite/mod_flite.c
+1
-1
mod_unimrcp.c
src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c
+3
-2
mod_ssml.c
src/mod/formats/mod_ssml/mod_ssml.c
+1
-1
没有找到文件。
src/mod/asr_tts/mod_flite/mod_flite.c
浏览文件 @
ab5278c0
...
@@ -72,7 +72,7 @@ typedef struct flite_data flite_t;
...
@@ -72,7 +72,7 @@ typedef struct flite_data flite_t;
#define free_wave(w) if (w) {delete_wave(w) ; w = NULL; }
#define free_wave(w) if (w) {delete_wave(w) ; w = NULL; }
#define FLITE_BLOCK_SIZE 1024 * 32
#define FLITE_BLOCK_SIZE 1024 * 32
static
switch_status_t
flite_speech_open
(
switch_speech_handle_t
*
sh
,
const
char
*
voice_name
,
int
rate
,
switch_speech_flag_t
*
flags
)
static
switch_status_t
flite_speech_open
(
switch_speech_handle_t
*
sh
,
const
char
*
voice_name
,
int
rate
,
int
channels
,
switch_speech_flag_t
*
flags
)
{
{
flite_t
*
flite
=
switch_core_alloc
(
sh
->
memory_pool
,
sizeof
(
*
flite
));
flite_t
*
flite
=
switch_core_alloc
(
sh
->
memory_pool
,
sizeof
(
*
flite
));
...
...
src/mod/asr_tts/mod_unimrcp/mod_unimrcp.c
浏览文件 @
ab5278c0
...
@@ -378,7 +378,7 @@ static switch_status_t synth_load(switch_loadable_module_interface_t *module_int
...
@@ -378,7 +378,7 @@ static switch_status_t synth_load(switch_loadable_module_interface_t *module_int
static
switch_status_t
synth_shutdown
();
static
switch_status_t
synth_shutdown
();
/* synthesizer's interface for FreeSWITCH */
/* synthesizer's interface for FreeSWITCH */
static
switch_status_t
synth_speech_open
(
switch_speech_handle_t
*
sh
,
const
char
*
voice_name
,
int
rate
,
switch_speech_flag_t
*
flags
);
static
switch_status_t
synth_speech_open
(
switch_speech_handle_t
*
sh
,
const
char
*
voice_name
,
int
rate
,
int
channels
,
switch_speech_flag_t
*
flags
);
static
switch_status_t
synth_speech_close
(
switch_speech_handle_t
*
sh
,
switch_speech_flag_t
*
flags
);
static
switch_status_t
synth_speech_close
(
switch_speech_handle_t
*
sh
,
switch_speech_flag_t
*
flags
);
static
switch_status_t
synth_speech_feed_tts
(
switch_speech_handle_t
*
sh
,
char
*
text
,
switch_speech_flag_t
*
flags
);
static
switch_status_t
synth_speech_feed_tts
(
switch_speech_handle_t
*
sh
,
char
*
text
,
switch_speech_flag_t
*
flags
);
static
switch_status_t
synth_speech_read_tts
(
switch_speech_handle_t
*
sh
,
void
*
data
,
switch_size_t
*
datalen
,
switch_speech_flag_t
*
flags
);
static
switch_status_t
synth_speech_read_tts
(
switch_speech_handle_t
*
sh
,
void
*
data
,
switch_size_t
*
datalen
,
switch_speech_flag_t
*
flags
);
...
@@ -1571,10 +1571,11 @@ static switch_status_t speech_channel_set_state_unlocked(speech_channel_t *schan
...
@@ -1571,10 +1571,11 @@ static switch_status_t speech_channel_set_state_unlocked(speech_channel_t *schan
* @param sh the FreeSWITCH speech handle
* @param sh the FreeSWITCH speech handle
* @param voice_name the voice to use
* @param voice_name the voice to use
* @param rate the sampling rate requested
* @param rate the sampling rate requested
* @param channels the number of channels requested
* @param flags other options
* @param flags other options
* @return SWITCH_STATUS_SUCCESS if successful, otherwise SWITCH_STATUS_FALSE
* @return SWITCH_STATUS_SUCCESS if successful, otherwise SWITCH_STATUS_FALSE
*/
*/
static
switch_status_t
synth_speech_open
(
switch_speech_handle_t
*
sh
,
const
char
*
voice_name
,
int
rate
,
switch_speech_flag_t
*
flags
)
static
switch_status_t
synth_speech_open
(
switch_speech_handle_t
*
sh
,
const
char
*
voice_name
,
int
rate
,
int
channels
,
switch_speech_flag_t
*
flags
)
{
{
switch_status_t
status
=
SWITCH_STATUS_SUCCESS
;
switch_status_t
status
=
SWITCH_STATUS_SUCCESS
;
speech_channel_t
*
schannel
=
NULL
;
speech_channel_t
*
schannel
=
NULL
;
...
...
src/mod/formats/mod_ssml/mod_ssml.c
浏览文件 @
ab5278c0
...
@@ -938,7 +938,7 @@ static switch_status_t tts_file_open(switch_file_handle_t *handle, const char *p
...
@@ -938,7 +938,7 @@ static switch_status_t tts_file_open(switch_file_handle_t *handle, const char *p
memset
(
context
,
0
,
sizeof
(
*
context
));
memset
(
context
,
0
,
sizeof
(
*
context
));
context
->
flags
=
SWITCH_SPEECH_FLAG_NONE
;
context
->
flags
=
SWITCH_SPEECH_FLAG_NONE
;
if
((
status
=
switch_core_speech_open
(
&
context
->
sh
,
module
,
voice
,
handle
->
samplerate
,
handle
->
interval
,
&
context
->
flags
,
NULL
))
==
SWITCH_STATUS_SUCCESS
)
{
if
((
status
=
switch_core_speech_open
(
&
context
->
sh
,
module
,
voice
,
handle
->
samplerate
,
handle
->
interval
,
handle
->
channels
,
&
context
->
flags
,
NULL
))
==
SWITCH_STATUS_SUCCESS
)
{
if
((
status
=
switch_core_speech_feed_tts
(
&
context
->
sh
,
document
,
&
context
->
flags
))
==
SWITCH_STATUS_SUCCESS
)
{
if
((
status
=
switch_core_speech_feed_tts
(
&
context
->
sh
,
document
,
&
context
->
flags
))
==
SWITCH_STATUS_SUCCESS
)
{
handle
->
channels
=
1
;
handle
->
channels
=
1
;
handle
->
samples
=
0
;
handle
->
samples
=
0
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论