`
zhijin
  • 浏览: 75988 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

How to use freetts create/generate a wave file

阅读更多

SingleFileAudioPlayer streams audio to a file.

 

The SingleFileAudioPlayer doesn't write to the file until its close method is called. When an application calls setAudioPlayer on a voice, it is responsible for calling the close method. As such, you need to do just a little more work.

Try starting with just the very simple FreeTTS HelloWorld program and then modifying it very slightly as follows:

SingleFileAudioPlayer sfap = new SingleFileAudioPlayer();
helloVoice.setAudioPlayer(sfap);
helloVoice.speak("Thank you for giving me a voice. "
+ "I'm so glad to say hello to this world.");
sfap.close();

 

 

and this can create a wave file names "freetts.wav".

 

There is a topic about this, see also:

 

http://sourceforge.net/projects/freetts/forums/forum/137669/topic/1166875

 

 

分享到:
评论

相关推荐

    How to use SFTP

    How to use SFTP (with client validation - public key authentication) The topic How to use SFTP (with client validation - password authentication) discusses the simplest form of client ...

    matplotlib Plotting Cookbook: Learn how to create professional scientific plots

    You can generate plots, add dimensions to the plots, and also make the plots interactive with just a few lines of code with matplotlib. Also, matplotlib integrates well with all common GUI modules. ...

    for/generate_for_experiment

    Verilog中,for和generate-for 循环对于电路结构影响的实验,对比不同写法得到的电路结构和综合结果。可参考文章https://blog.csdn.net/weixin_44544687/article/details/109720389

    Generate File步骤1

    在FPGA开发过程中,"Generate File步骤1"涉及的关键步骤是综合(Synthesis),这是将设计的高级描述转换为硬件门级逻辑的过程。这里使用的工具是XST(Xilinx Synthesis Technology),它是Xilinx ISE(Integrated ...

    IDEA逆向生成POJO/DAO/MAPPER 《Generate POJOs.groovy》

    IDEA自带的插件Generate POJOs.groovy 比较简陋,不能生成完整的dao/mapper,切生成的POJO没有注解。没有统一格式化,所以在此基础上进行了扩展能够简单的生成pojo/dao/mapper. 使用时选择目录后会在改目录下生成...

    go系统编程(英文版)

    Chapter 6, File Input and Output, shows you how to read the contents of a file, how to change them, and how to write your own data to files! In this chapter, you will learn about the io package, the ...

    RemObjects SDK for Delphi

    Advanced This example shows how to create a proxy server to redirect the calls to another server without having to recreate the RODL file, thus allowing the use of the same types of the original ...

    redmine自定义插件开发

    6 description 'A plugin for managing polls' 7 version '0.0.1' 8 end 插件的部署 在编辑完插件信息后,需要重启应用服务,以便红矿系统加载新的插件。在浏览器输入http://localhost:3000/admin/plugins,登录后...

    ruby186-26

    - create script/generate - create script/server - create script/runner - create script/benchmarker - create script/profiler - create script/breakpointer - create public/dispatch.rb - create public/...

    checksum.ini

    OPPO A59s,刷机提示can not find checksum.ini file,Please use ChecksumGenerateTool to generate the Checksum,下载这个文档放在刷机包里面,注意适用oppo a59s。其他的包可能会引起不适,我也是找了好几天,...

    Android8.1原生系统网络感叹号消除的方法

    原生系统Android8.1上,WiFi上出现感叹号,此时WiFi可正常访问。 原因 这是Android 5.0引入的网络评估机制:就是当你连上网络后,会给目标产生204响应... http://connect.rom.miui.com/generate_204 http://www.v2ex

    CheckSum_Generate_exe_v7.1536.00.00

    《CheckSum_Generate_exe_v7.1536.00.00:MTK平台校验和生成工具详解》 在IT行业中,数据的完整性和安全性至关重要,尤其是在固件更新、软件分发等场景下。为了确保文件在传输过程中没有被篡改或损坏,通常会使用...

    vue-generate-cli:用于自动生成vue模板组件的cli工具

    $ npm install -g vue-generate-clior$ yarn global add vue-generate-cli用法// default generate a new file in ' ./src ' directory or sub-directory// add -R [rootDir] option to generate new file in ...

    Thinking in LINQ

    how to generate recursive patterns and mathematical series. • Chapter 3: Text Processing Text processing is a blanket term used to cover a range of tasks, from generation of text to spell-checking. ...

    Your Excel Survival Kit pdf

    how to set up a simple list and how to create a list for your recurring data. It’s the piece that’s often omitted in many Excel books. You get it here. Chapter 3, “Further Cleaning, Slicing, and ...

    Angular Services

    We will then create a crawler service to find all relevant resources regarding a selected headline and generate reports on it. Finally, you will create a service to manage accuracy and provide ...

Global site tag (gtag.js) - Google Analytics