你能给我一个音色preverser音高算法吗? [英] Can you give me a timbre preverser pitch algorithm?

查看:279
本文介绍了你能给我一个音色preverser音高算法吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你能给我一个音色preverser音调算法吗?

它可以是C ++或C#或任何语言只是给我或告诉我如何创建一个。



我需要一个自己的TTS引擎。



我尝试了什么:



Can you give me a timbre preverser pitch algorithm?
It can be C++ or C# or any language just give me or tell me how to create one.

I need it for an own TTS engine.

What I have tried:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
 
using System.Speech.Synthesis;
using System.Speech.AudioFormat;
 
 public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
 
        List<string> all_lines_List = new List<string>();
 
        private void Read_Click(object sender, EventArgs e)
        {
            if(comboBox1.SelectedItem!=null)
            {
                button1.Enabled = false;
 
                
                SpeechSynthesizer speech_synthesizer = new SpeechSynthesizer();
 
                ReadOnlyCollection<InstalledVoice> InstalledVoices = speech_synthesizer.GetInstalledVoices();
                
 

                speech_synthesizer.SelectVoice(comboBox1.SelectedItem.ToString());
                //speech_synthesizer.SelectVoice("MSMary");  
               
                speech_synthesizer.SetOutputToDefaultAudioDevice();
                //PromptBuilder builder = new PromptBuilder();
                //builder.AppendSsmlMarkup("<say-as interpret-as = \"chs\"> chair </say-as>");

                //speech_synthesizer.AddLexicon(new Uri("C:\\W7\\Spelling.pls"), "application/pls");
                
                speech_synthesizer.Volume = 100;
                speech_synthesizer.Rate = 0;
 
                PromptBuilder builder = new PromptBuilder();
                builder.AppendText("This is sample output to a WAVE file.", PromptEmphasis.Strong);
                builder.AppendSsmlMarkup("<say-as interpret-as = \"WAVE\"> chair </say-as>");
 
                speech_synthesizer.Speak(builder);
 
                speech_synthesizer.Speak(richTextBox2.Text);
 
                //speech_synthesizer.RemoveLexicon(new Uri("C:\\W7\\Spelling.pls"));
                button1.Enabled = true;                
 
                System.Media.SystemSounds.Asterisk.Play();
 
                Application.DoEvents();
            
            }
            else
            {
                System.Media.SystemSounds.Hand.Play();
                MessageBox.Show("Please, Select a Voice.");
            }
 

           
        }
 
        private void Save_Without_Reading_Click(object sender, EventArgs e)
        {
                      
            if (comboBox1.SelectedItem != null)
            {
                SpeechSynthesizer speech_synthesizer = new SpeechSynthesizer();
 
                speech_synthesizer.SelectVoice(comboBox1.SelectedItem.ToString());
                
                speech_synthesizer.SetOutputToDefaultAudioDevice();
 
                speech_synthesizer.Volume = 100;
                speech_synthesizer.Rate = 0;
 
                speech_synthesizer.SetOutputToWaveFile(comboBox1.SelectedItem.ToString() + " - Speech.wav", new SpeechAudioFormatInfo(44100, AudioBitsPerSample.Sixteen, AudioChannel.Mono));
 
                speech_synthesizer.Speak(richTextBox2.Text);
                System.Media.SystemSounds.Asterisk.Play();                
 
            }
            else
            {
                System.Media.SystemSounds.Hand.Play();
                MessageBox.Show("Please, Select a Voice.");
            }
 
            
        }        

推荐答案

嗯,首先阅读这些 [ ^ ]然后开始编写自己的算法代码。



不,你不会找到任何只会给你努力工作的人。
Well, you start by reading these[^] then start writing your own algorithm code.

No, you're not going to find anyone that will just "give you" their hard work.


这篇关于你能给我一个音色preverser音高算法吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆