安装FreeSwitch主要命令如下:git clone -b v1.2.stable git://git.freeswitch.org/freeswitch.git
cd freeswitch/
./bootstrap.sh && ./configure && make && make install && make hd-sounds-install && make hd-moh-insta...
分类:
其他好文 时间:
2015-06-02 13:30:25
阅读次数:
1181
虽然视觉上的反馈通常是给用户提供信息最快的方式,但这要求用户把注意力设备上。当用户不能查看设备时,则需要一些其他通信的方法。Android提供了强大的文字转语音Text-to-Speech,TTS API。使开发者能够在应用中添加语音通知和其他语音反馈功能,而不要求用户看着屏幕。
下面的代码展示了如何使用TTS API:
public class TextToSpeechDemo impl...
分类:
移动开发 时间:
2015-05-29 21:49:25
阅读次数:
170
#!/usr/bin/envlua--Author:jncheng--Email:burtte@sina.com--Version:20150520--[[1.Ifyouwantusetheluafile,youmustmodifytheconference.conf.xml:<controlaction="execute_application"digits="*"data="lua/${FreeSWITCH_base_dir}/scripts/add_user_to_conference.lua"/..
分类:
其他好文 时间:
2015-05-20 14:58:57
阅读次数:
448
#!/usr/bin/lua--Author:jncheng--Version:20150518--Getthesomevariabledomain=session:getVariable("domain_name")dest_exten=session:getVariable("destination_number")--ConnecttheFreeSWITCHCoredatabaselocaldbh=freeswitch.Dbh("odbc://fs:fs:123qwe")freeswitch.conso..
分类:
其他好文 时间:
2015-05-18 21:03:54
阅读次数:
300
接着上一节讨论的问题,本DEMO中会用到TTS语音合成,我们下面介绍一个同样原理的小例子
看一下布局文件很简单:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill...
分类:
移动开发 时间:
2015-05-18 09:09:11
阅读次数:
212
应用案例:http://bookfuns.com/tools/daily/官方API:http://open.iciba.com/dsapi/返回json:{ "sid": "1287", "tts": "http://news.iciba.com/admin/tts/2015-05-1...
分类:
其他好文 时间:
2015-05-12 10:48:13
阅读次数:
124
Sofia-sip内部使用消息队列的方式对sip协议进行处理,sofia-sip和application之间是通过reactor模式进行通信,即通过回调实现,本文主要关注sofia-sip内部消息队列的实现:
1. 需要了解sofia-sip使用到的一些oo(面向对象)技术,链接如下
http://sofia-sip.sourceforge.net/refdocs/programmin...
分类:
其他好文 时间:
2015-05-07 20:30:31
阅读次数:
276
1.搜索windows-server X86-64机器上C:/windows/fonts的simkai.tts文件,windows7下有时候不行。2.把它拷贝到zabbix的web端的fonts目录下例如:/var/www/html/zabbix/fonts或apache安装目录htdocs/zab...
分类:
Web程序 时间:
2015-05-06 16:41:18
阅读次数:
217
#!/usr/bin/lua
--Author:jncheng
--Version:20150506
----------------------------------------------------------------------------------------
session:setVariable("continue_on_fail","USER_BUSY,NO_ANSWER,TIMEOUT,NO_USER_RESPONSE")
--getthedialextensionnumber
..
分类:
其他好文 时间:
2015-05-06 15:29:04
阅读次数:
255
#!/usr/bin/lua
--Author:jncheng
--Version:20150506
-------------------------------------------------------------------------------------------
session:setVariable("continue_on_fail","USER_BUSY,NO_ANSWER,TIMEOUT,NO_USER_RESPONSE")
--session:setVariable("ca..
分类:
其他好文 时间:
2015-05-06 15:25:47
阅读次数:
956