当前位置:网站首页>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;
边栏推荐
- Wsl2 + vcxsrv + opengl3.3 configuration
- D template instance does not match declaration
- How does Google's audience work?
- [wsl2]wsl2 migrate virtual disk file ext4 vhdx
- ng-tv-focusable
- Three paradigms of database
- Implementation and design of JMeter interface test database assertion for CSDN salary increase technology
- Thread code learning notes
- September 3, 2021 visual notes
- MySQL - use field alias after where
猜你喜欢

numpy多维数组转置transpose

How to solve practical problems through audience positioning?

什么是立体角

谷歌的受众群体是如何发挥作用的?

Quickly set the computer to turn off automatically

30: Kakfa simulates JSON data generation and transmission

6、 Implementation of warehouse out management function

Detailed understanding of white noise

MySQL related summary

How to print infinite symbol in WPS
随机推荐
Page optimization - Notes
On February 26, 2022, the latest news of national oil price adjustment today
Database query user mailbox
Super complete regular expressions
Detailed understanding of white noise
How to print infinite symbol in WPS
How do you use your own data to achieve your marketing goals?
他山之石:a16z 的 Web3 投资版图
Stack stack LIFO
Use koa to mock data and set cross domain issues
Traversal of binary tree - first order traversal, middle order traversal, and second order traversal
MySQL performance optimization
Summary of various installation methods of Lab View
Note: common gadgets in project architecture
A DPU architecture without CPU: Hyperion
Detailed explanation of audience characteristics
This of phaser3 add. sprite
leetcode743. 网络延迟时间(中等, dijkstra)
Workspace for ROS
Add default right-click menu