我是android dev的新手.
如何将eSpeak导入我的android项目并使用它来阅读文本?
我在哪里可以下载eSpeak库?
我刚发现:
http://espeak.sourceforge.net/
https://github.com/rhdunn/espeak#android
但是android项目在哪里以及如何使用它?
是否有任何示例代码来阅读文本?
谢谢.
我正在使用此代码:
function getUrl($url) {
if(@function_exists('curl_init')) {
$cookie = tempnam ("/tmp", "CURLCOOKIE");
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (compatible; CrawlBot/1.0.0)');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT , 5);
curl_setopt($ch, CURLOPT_TIMEOUT, 5);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_ENCODING, "");
curl_setopt($ch, CURLOPT_AUTOREFERER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); # required for https urls
curl_setopt($ch, CURLOPT_MAXREDIRS, 15);
$site = curl_exec($ch);
curl_close($ch);
} else {
global $site;
$site = file_get_contents($url);
}
return $site;
};
Run Code Online (Sandbox Code Playgroud)
但我看到错误301永久移动.
我该怎么做才能解决这个问题?你能给我正确的代码吗?
我是android开发的新手,我搜索了这个问题,但我找不到答案.
我想知道有没有能力在android中编辑声音调用?
我的意思是我想添加噪音或改变来电者的声音,是否可以改变通话中的声音或为其添加新声音?