当前位置:网站首页>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;
边栏推荐
- 关于tkinter.Canvas 不显示图片的问题
- [leetcode] valid phone number Bash
- [WSL2]限制WSL2可访问的硬件资源(CPU/内存)
- Large end storage and small end storage
- Server installation jupyterab and remote login configuration
- URI, URL and urn difference, relation and syntax diagram
- Simple operation of MySQL database
- 如何通过受众群体定位解决实际问题?
- Stm32 3*3 matrix key (register version)
- September 3, 2021 visual notes
猜你喜欢

DFS and BFS notes (II): depth first search (implemented in C language)

What is Google plus large text ads? How to use it?

URI, URL and urn difference, relation and syntax diagram

Sliding window summary of TCP connections

四、入库管理功能的完善

4、 Improvement of warehousing management function

How to solve the problems when using TV focusable to package APK in uni app

What is solid angle

Simple operation of MySQL database

Matplotlib drawing Chinese garbled code
随机推荐
Shell command notes
Spit bubbles (stack)
Stack stack LIFO
Stm32 3*3 matrix key (register version)
深度学习调参技巧详解
[WSL2]WSL2迁移虚拟磁盘文件ext4.vhdx
Tweets movement description and chart display
Large end storage and small end storage
一种不带CPU的DPU架构:Hyperion
Redis usage optimization summary learning
DFS and BFS notes (II): depth first search (implemented in C language)
(no plug-in) summary of vim basic shortcut keys
My crawler learning notes
[从零开始学习FPGA编程-21]:进阶篇 - 架构 - VerilogHDL编码规范
About constructive code blocks, static code blocks, and constructor execution order
About retrieving ignored files in cornerstone
如何通过受众群体定位解决实际问题?
QT color extraction
Unity JsonUtility 无法序列化List
兴趣相似的受众群体