当前位置:网站首页>Delphi Google API text to speech MP3 file
Delphi Google API text to speech MP3 file
2022-06-13 01:43:00 【Guoguo】
Stream : TMemoryStream;
begin
Stream := TMemoryStream.Create;
try
IdHTTP1.Request.UserAgent := 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401';
IdHTTP1.Get(TIdURI.URLEncode('http://translate.google.com/translate_tts?tl=ko&q=' + txtHangul.Text), Stream);
finally
MediaPlayer1.Close;
Stream.SaveToFile(ExtractFilePath(Application.ExeName) + 'temp.mp3');
MediaPlayer1.FileName := ExtractFilePath(Application.ExeName) + 'temp.mp3';
MediaPlayer1.Open;
MediaPlayer1.Play;
end;
end;
边栏推荐
- [从零开始学习FPGA编程-21]:进阶篇 - 架构 - VerilogHDL编码规范
- 路径字段是什么? ——竞价广告
- 服务器安装jupyterlab以及远程登录配置
- 水管工游戏
- Simple operation of MySQL database
- [official document summary] writing standards for academic dissertations of National University of science and technology
- Traversal of binary tree - first order traversal, middle order traversal, and second order traversal
- H5 open the app. If the app is not downloaded, jump to the download page. If the app has been downloaded, wake up the app
- 【软考】软件设计师知识点整理(待更新)
- 4、 Improvement of warehousing management function
猜你喜欢
随机推荐
QT color extraction
Simple operation of MySQL database
A DPU architecture without CPU: Hyperion
他山之石:a16z 的 Web3 投资版图
Spit bubbles (stack)
#pragma comment(lib,“urlmon.lib“)
五、库存查询功能的完善
Traversal of binary tree - first order traversal, middle order traversal, and second order traversal
Should the audience choose observation mode or positioning mode?
Unity jsonutility failed to serialize list
Cmake has no obvious error after compilation, but prompts that pthread cannot be found
Server installation jupyterab and remote login configuration
The second round of mesa
Idea installation tutorial
Phaser3 load
ng-tv-focusable
Machine learning basic SVM (support vector machine)
如何通过受众群体定位解决实际问题?
Use koa to mock data and set cross domain issues
What is Google plus large text ads? How to use it?








