diff --git a/MoeGoe_GUI/MainWin.Designer.cs b/MoeGoe_GUI/MainWin.Designer.cs index 0206812..6e3487e 100644 --- a/MoeGoe_GUI/MainWin.Designer.cs +++ b/MoeGoe_GUI/MainWin.Designer.cs @@ -134,98 +134,75 @@ private void InitializeComponent() // // EXEPanel // + resources.ApplyResources(this.EXEPanel, "EXEPanel"); this.EXEPanel.Controls.Add(this.EXEPath); this.EXEPanel.Controls.Add(this.openEXE); - this.EXEPanel.Location = new System.Drawing.Point(12, 12); this.EXEPanel.Name = "EXEPanel"; - this.EXEPanel.Size = new System.Drawing.Size(501, 85); - this.EXEPanel.TabIndex = 0; this.EXEPanel.TabStop = false; - this.EXEPanel.Text = "MoeGoe.exe"; // // EXEPath // - this.EXEPath.Location = new System.Drawing.Point(132, 32); + resources.ApplyResources(this.EXEPath, "EXEPath"); this.EXEPath.Name = "EXEPath"; - this.EXEPath.Size = new System.Drawing.Size(363, 31); - this.EXEPath.TabIndex = 1; this.EXEPath.KeyDown += new System.Windows.Forms.KeyEventHandler(this.EXEPath_KeyDown); this.EXEPath.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.EXEPath_KeyPress); // // openEXE // - this.openEXE.Location = new System.Drawing.Point(6, 30); + resources.ApplyResources(this.openEXE, "openEXE"); this.openEXE.Name = "openEXE"; - this.openEXE.Size = new System.Drawing.Size(120, 35); - this.openEXE.TabIndex = 0; - this.openEXE.Text = "打开文件"; this.openEXE.UseVisualStyleBackColor = true; this.openEXE.Click += new System.EventHandler(this.OpenEXE_Click); // // modelPanel // + resources.ApplyResources(this.modelPanel, "modelPanel"); this.modelPanel.Controls.Add(this.configPath); this.modelPanel.Controls.Add(this.openConfig); this.modelPanel.Controls.Add(this.modelPath); this.modelPanel.Controls.Add(this.openModel); - this.modelPanel.Location = new System.Drawing.Point(6, 6); this.modelPanel.Name = "modelPanel"; - this.modelPanel.Size = new System.Drawing.Size(485, 125); - this.modelPanel.TabIndex = 1; this.modelPanel.TabStop = false; - this.modelPanel.Text = "模型文件"; // // configPath // - this.configPath.Location = new System.Drawing.Point(132, 73); + resources.ApplyResources(this.configPath, "configPath"); this.configPath.Name = "configPath"; - this.configPath.Size = new System.Drawing.Size(347, 31); - this.configPath.TabIndex = 3; this.configPath.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ConfigPath_KeyDown); this.configPath.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.ConfigPath_KeyPress); // // openConfig // - this.openConfig.Location = new System.Drawing.Point(6, 71); + resources.ApplyResources(this.openConfig, "openConfig"); this.openConfig.Name = "openConfig"; - this.openConfig.Size = new System.Drawing.Size(120, 35); - this.openConfig.TabIndex = 2; - this.openConfig.Text = "打开配置"; this.openConfig.UseVisualStyleBackColor = true; this.openConfig.Click += new System.EventHandler(this.OpenConfig_Click); // // modelPath // - this.modelPath.Location = new System.Drawing.Point(132, 32); + resources.ApplyResources(this.modelPath, "modelPath"); this.modelPath.Name = "modelPath"; - this.modelPath.Size = new System.Drawing.Size(347, 31); - this.modelPath.TabIndex = 1; this.modelPath.KeyDown += new System.Windows.Forms.KeyEventHandler(this.ModelPath_KeyDown); this.modelPath.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.ModelPath_KeyPress); // // openModel // - this.openModel.Location = new System.Drawing.Point(6, 30); + resources.ApplyResources(this.openModel, "openModel"); this.openModel.Name = "openModel"; - this.openModel.Size = new System.Drawing.Size(120, 35); - this.openModel.TabIndex = 0; - this.openModel.Text = "打开模型"; this.openModel.UseVisualStyleBackColor = true; this.openModel.Click += new System.EventHandler(this.OpenModel_Click); // // modeControl // + resources.ApplyResources(this.modeControl, "modeControl"); this.modeControl.Controls.Add(this.TTSPage); this.modeControl.Controls.Add(this.VCPage); - this.modeControl.Enabled = false; - this.modeControl.Location = new System.Drawing.Point(6, 137); this.modeControl.Name = "modeControl"; this.modeControl.SelectedIndex = 0; - this.modeControl.Size = new System.Drawing.Size(487, 267); - this.modeControl.TabIndex = 2; // // TTSPage // + resources.ApplyResources(this.TTSPage, "TTSPage"); this.TTSPage.Controls.Add(this.cleanButton2); this.TTSPage.Controls.Add(this.symbolsButton2); this.TTSPage.Controls.Add(this.paramsButton2); @@ -233,773 +210,539 @@ private void InitializeComponent() this.TTSPage.Controls.Add(this.speakerLabel); this.TTSPage.Controls.Add(this.textLabel); this.TTSPage.Controls.Add(this.textBox); - this.TTSPage.Location = new System.Drawing.Point(4, 33); this.TTSPage.Name = "TTSPage"; - this.TTSPage.Padding = new System.Windows.Forms.Padding(3); - this.TTSPage.Size = new System.Drawing.Size(479, 230); - this.TTSPage.TabIndex = 0; - this.TTSPage.Text = "语音合成"; this.TTSPage.UseVisualStyleBackColor = true; // // cleanButton2 // - this.cleanButton2.Location = new System.Drawing.Point(118, 138); + resources.ApplyResources(this.cleanButton2, "cleanButton2"); this.cleanButton2.Name = "cleanButton2"; - this.cleanButton2.Size = new System.Drawing.Size(111, 35); - this.cleanButton2.TabIndex = 10; - this.cleanButton2.Text = "清理文本"; this.cleanButton2.UseVisualStyleBackColor = true; this.cleanButton2.Click += new System.EventHandler(this.CleanButton_Click); // // symbolsButton2 // - this.symbolsButton2.Location = new System.Drawing.Point(351, 138); + resources.ApplyResources(this.symbolsButton2, "symbolsButton2"); this.symbolsButton2.Name = "symbolsButton2"; - this.symbolsButton2.Size = new System.Drawing.Size(111, 35); - this.symbolsButton2.TabIndex = 9; - this.symbolsButton2.Text = "符号输入"; this.symbolsButton2.UseVisualStyleBackColor = true; this.symbolsButton2.Click += new System.EventHandler(this.SymbolsButton_Click); // // paramsButton2 // - this.paramsButton2.Location = new System.Drawing.Point(234, 138); + resources.ApplyResources(this.paramsButton2, "paramsButton2"); this.paramsButton2.Name = "paramsButton2"; - this.paramsButton2.Size = new System.Drawing.Size(111, 35); - this.paramsButton2.TabIndex = 8; - this.paramsButton2.Text = "参数设置"; this.paramsButton2.UseVisualStyleBackColor = true; this.paramsButton2.Click += new System.EventHandler(this.AdvancedButton_Click); // // speakerBox // - this.speakerBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.speakerBox.Font = new System.Drawing.Font("Yu Gothic UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); + resources.ApplyResources(this.speakerBox, "speakerBox"); this.speakerBox.FormattingEnabled = true; - this.speakerBox.Location = new System.Drawing.Point(118, 179); this.speakerBox.Name = "speakerBox"; - this.speakerBox.Size = new System.Drawing.Size(344, 33); - this.speakerBox.TabIndex = 3; + this.speakerBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.SearchSpeakers); // // speakerLabel // - this.speakerLabel.AutoSize = true; - this.speakerLabel.Location = new System.Drawing.Point(28, 183); + resources.ApplyResources(this.speakerLabel, "speakerLabel"); this.speakerLabel.Name = "speakerLabel"; - this.speakerLabel.Size = new System.Drawing.Size(64, 24); - this.speakerLabel.TabIndex = 2; - this.speakerLabel.Text = "说话人"; // // textLabel // - this.textLabel.AutoSize = true; - this.textLabel.Location = new System.Drawing.Point(37, 63); + resources.ApplyResources(this.textLabel, "textLabel"); this.textLabel.Name = "textLabel"; - this.textLabel.Size = new System.Drawing.Size(46, 24); - this.textLabel.TabIndex = 0; - this.textLabel.Text = "文本"; // // textBox // + resources.ApplyResources(this.textBox, "textBox"); this.textBox.ContextMenuStrip = this.menuStrip; - this.textBox.Font = new System.Drawing.Font("Yu Gothic UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); - this.textBox.Location = new System.Drawing.Point(118, 18); - this.textBox.Multiline = true; this.textBox.Name = "textBox"; - this.textBox.Size = new System.Drawing.Size(344, 114); - this.textBox.TabIndex = 1; this.textBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TextBox_KeyDown); // // menuStrip // + resources.ApplyResources(this.menuStrip, "menuStrip"); this.menuStrip.ImageScalingSize = new System.Drawing.Size(24, 24); this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.cleanButton, this.paramsButton, this.symbolsButton}); this.menuStrip.Name = "menuStrip"; - this.menuStrip.Size = new System.Drawing.Size(153, 94); // // cleanButton // + resources.ApplyResources(this.cleanButton, "cleanButton"); this.cleanButton.Name = "cleanButton"; - this.cleanButton.Size = new System.Drawing.Size(152, 30); - this.cleanButton.Text = "清理文本"; this.cleanButton.Click += new System.EventHandler(this.CleanButton_Click); // // paramsButton // + resources.ApplyResources(this.paramsButton, "paramsButton"); this.paramsButton.Name = "paramsButton"; - this.paramsButton.Size = new System.Drawing.Size(152, 30); - this.paramsButton.Text = "参数设置"; this.paramsButton.Click += new System.EventHandler(this.AdvancedButton_Click); // // symbolsButton // + resources.ApplyResources(this.symbolsButton, "symbolsButton"); this.symbolsButton.Name = "symbolsButton"; - this.symbolsButton.Size = new System.Drawing.Size(152, 30); - this.symbolsButton.Text = "符号输入"; this.symbolsButton.Click += new System.EventHandler(this.SymbolsButton_Click); // // VCPage // + resources.ApplyResources(this.VCPage, "VCPage"); this.VCPage.Controls.Add(this.openOrigin); this.VCPage.Controls.Add(this.originPath); this.VCPage.Controls.Add(this.originBox); this.VCPage.Controls.Add(this.originLabel); this.VCPage.Controls.Add(this.targetBox); this.VCPage.Controls.Add(this.targetLabel); - this.VCPage.Location = new System.Drawing.Point(4, 33); this.VCPage.Name = "VCPage"; - this.VCPage.Padding = new System.Windows.Forms.Padding(3); - this.VCPage.Size = new System.Drawing.Size(479, 230); - this.VCPage.TabIndex = 1; - this.VCPage.Text = "语音转换"; this.VCPage.UseVisualStyleBackColor = true; // // openOrigin // - this.openOrigin.Location = new System.Drawing.Point(12, 39); + resources.ApplyResources(this.openOrigin, "openOrigin"); this.openOrigin.Name = "openOrigin"; - this.openOrigin.Size = new System.Drawing.Size(108, 35); - this.openOrigin.TabIndex = 4; - this.openOrigin.Text = "打开原音频"; this.openOrigin.UseVisualStyleBackColor = true; this.openOrigin.Click += new System.EventHandler(this.OpenOrigin_Click); // // originPath // - this.originPath.Location = new System.Drawing.Point(128, 41); + resources.ApplyResources(this.originPath, "originPath"); this.originPath.Name = "originPath"; - this.originPath.Size = new System.Drawing.Size(344, 31); - this.originPath.TabIndex = 12; this.originPath.KeyDown += new System.Windows.Forms.KeyEventHandler(this.OriginPath_KeyDown); this.originPath.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.OriginPath_KeyPress); // // originBox // - this.originBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.originBox.Font = new System.Drawing.Font("Yu Gothic UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); + resources.ApplyResources(this.originBox, "originBox"); this.originBox.FormattingEnabled = true; - this.originBox.Location = new System.Drawing.Point(128, 106); this.originBox.Name = "originBox"; - this.originBox.Size = new System.Drawing.Size(344, 33); - this.originBox.TabIndex = 10; + this.originBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.SearchSpeakers); // // originLabel // - this.originLabel.AutoSize = true; - this.originLabel.Location = new System.Drawing.Point(25, 110); + resources.ApplyResources(this.originLabel, "originLabel"); this.originLabel.Name = "originLabel"; - this.originLabel.Size = new System.Drawing.Size(82, 24); - this.originLabel.TabIndex = 9; - this.originLabel.Text = "原说话人"; // // targetBox // - this.targetBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.targetBox.Font = new System.Drawing.Font("Yu Gothic UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); + resources.ApplyResources(this.targetBox, "targetBox"); this.targetBox.FormattingEnabled = true; - this.targetBox.Location = new System.Drawing.Point(128, 156); this.targetBox.Name = "targetBox"; - this.targetBox.Size = new System.Drawing.Size(344, 33); - this.targetBox.TabIndex = 8; + this.targetBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.SearchSpeakers); // // targetLabel // - this.targetLabel.AutoSize = true; - this.targetLabel.Location = new System.Drawing.Point(16, 160); + resources.ApplyResources(this.targetLabel, "targetLabel"); this.targetLabel.Name = "targetLabel"; - this.targetLabel.Size = new System.Drawing.Size(100, 24); - this.targetLabel.TabIndex = 7; - this.targetLabel.Text = "目标说话人"; // // savePanel // + resources.ApplyResources(this.savePanel, "savePanel"); this.savePanel.Controls.Add(this.deleteButton); this.savePanel.Controls.Add(this.stopButton); this.savePanel.Controls.Add(this.resaveButton); this.savePanel.Controls.Add(this.playButton); this.savePanel.Controls.Add(this.savePath); this.savePanel.Controls.Add(this.saveButton); - this.savePanel.Enabled = false; - this.savePanel.Location = new System.Drawing.Point(12, 556); this.savePanel.Name = "savePanel"; - this.savePanel.Size = new System.Drawing.Size(501, 125); - this.savePanel.TabIndex = 3; this.savePanel.TabStop = false; - this.savePanel.Text = "保存文件"; // // deleteButton // - this.deleteButton.Enabled = false; - this.deleteButton.Location = new System.Drawing.Point(132, 71); + resources.ApplyResources(this.deleteButton, "deleteButton"); this.deleteButton.Name = "deleteButton"; - this.deleteButton.Size = new System.Drawing.Size(115, 35); - this.deleteButton.TabIndex = 7; - this.deleteButton.Text = "删除"; this.deleteButton.UseVisualStyleBackColor = true; this.deleteButton.Click += new System.EventHandler(this.DeleteButton_Click); // // stopButton // - this.stopButton.Enabled = false; - this.stopButton.Location = new System.Drawing.Point(380, 71); + resources.ApplyResources(this.stopButton, "stopButton"); this.stopButton.Name = "stopButton"; - this.stopButton.Size = new System.Drawing.Size(115, 35); - this.stopButton.TabIndex = 6; - this.stopButton.Text = "停止"; this.stopButton.UseVisualStyleBackColor = true; this.stopButton.Click += new System.EventHandler(this.StopButton_Click); // // resaveButton // - this.resaveButton.Enabled = false; - this.resaveButton.Location = new System.Drawing.Point(6, 71); + resources.ApplyResources(this.resaveButton, "resaveButton"); this.resaveButton.Name = "resaveButton"; - this.resaveButton.Size = new System.Drawing.Size(120, 35); - this.resaveButton.TabIndex = 2; - this.resaveButton.Text = "重新合成"; this.resaveButton.UseVisualStyleBackColor = true; this.resaveButton.Click += new System.EventHandler(this.ResaveButton_Click); // // playButton // - this.playButton.Enabled = false; - this.playButton.Location = new System.Drawing.Point(256, 71); + resources.ApplyResources(this.playButton, "playButton"); this.playButton.Name = "playButton"; - this.playButton.Size = new System.Drawing.Size(115, 35); - this.playButton.TabIndex = 4; - this.playButton.Text = "播放"; this.playButton.UseVisualStyleBackColor = true; this.playButton.Click += new System.EventHandler(this.PlayButton_Click); // // savePath // - this.savePath.Location = new System.Drawing.Point(132, 32); + resources.ApplyResources(this.savePath, "savePath"); this.savePath.Name = "savePath"; - this.savePath.Size = new System.Drawing.Size(363, 31); - this.savePath.TabIndex = 1; this.savePath.KeyDown += new System.Windows.Forms.KeyEventHandler(this.SavePath_KeyDown); this.savePath.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.SavePath_KeyPress); // // saveButton // - this.saveButton.Location = new System.Drawing.Point(6, 30); + resources.ApplyResources(this.saveButton, "saveButton"); this.saveButton.Name = "saveButton"; - this.saveButton.Size = new System.Drawing.Size(120, 35); - this.saveButton.TabIndex = 0; - this.saveButton.Text = "保存"; this.saveButton.UseVisualStyleBackColor = true; this.saveButton.Click += new System.EventHandler(this.SaveButton_Click); // // consoleBox // - this.consoleBox.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.consoleBox.Location = new System.Drawing.Point(528, 24); - this.consoleBox.Multiline = true; + resources.ApplyResources(this.consoleBox, "consoleBox"); this.consoleBox.Name = "consoleBox"; this.consoleBox.ReadOnly = true; - this.consoleBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical; - this.consoleBox.Size = new System.Drawing.Size(436, 657); - this.consoleBox.TabIndex = 4; // // modelControl // + resources.ApplyResources(this.modelControl, "modelControl"); this.modelControl.Controls.Add(this.vitsPage); this.modelControl.Controls.Add(this.hubertPage); this.modelControl.Controls.Add(this.w2v2Page); - this.modelControl.Enabled = false; - this.modelControl.Location = new System.Drawing.Point(12, 103); this.modelControl.Name = "modelControl"; this.modelControl.SelectedIndex = 0; - this.modelControl.Size = new System.Drawing.Size(505, 447); - this.modelControl.TabIndex = 5; this.modelControl.SelectedIndexChanged += new System.EventHandler(this.ModelControl_SelectedIndexChanged); // // vitsPage // + resources.ApplyResources(this.vitsPage, "vitsPage"); this.vitsPage.Controls.Add(this.modelPanel); this.vitsPage.Controls.Add(this.modeControl); - this.vitsPage.Location = new System.Drawing.Point(4, 33); this.vitsPage.Name = "vitsPage"; - this.vitsPage.Padding = new System.Windows.Forms.Padding(3); - this.vitsPage.Size = new System.Drawing.Size(497, 410); - this.vitsPage.TabIndex = 0; - this.vitsPage.Text = "VITS"; this.vitsPage.UseVisualStyleBackColor = true; // // hubertPage // + resources.ApplyResources(this.hubertPage, "hubertPage"); this.hubertPage.Controls.Add(this.HOpenOrigin); this.hubertPage.Controls.Add(this.HVCControl); this.hubertPage.Controls.Add(this.HModelPanel); this.hubertPage.Controls.Add(this.HOriginPath); - this.hubertPage.Location = new System.Drawing.Point(4, 33); this.hubertPage.Name = "hubertPage"; - this.hubertPage.Padding = new System.Windows.Forms.Padding(3); - this.hubertPage.Size = new System.Drawing.Size(497, 410); - this.hubertPage.TabIndex = 1; - this.hubertPage.Text = "HuBERT-VITS"; this.hubertPage.UseVisualStyleBackColor = true; // // HOpenOrigin // - this.HOpenOrigin.Enabled = false; - this.HOpenOrigin.Location = new System.Drawing.Point(10, 189); + resources.ApplyResources(this.HOpenOrigin, "HOpenOrigin"); this.HOpenOrigin.Name = "HOpenOrigin"; - this.HOpenOrigin.Size = new System.Drawing.Size(122, 35); - this.HOpenOrigin.TabIndex = 13; - this.HOpenOrigin.Text = "打开原音频"; this.HOpenOrigin.UseVisualStyleBackColor = true; this.HOpenOrigin.Click += new System.EventHandler(this.OpenOrigin_Click); // // HVCControl // + resources.ApplyResources(this.HVCControl, "HVCControl"); this.HVCControl.Controls.Add(this.HVCPage1); this.HVCControl.Controls.Add(this.HVCPage2); - this.HVCControl.Location = new System.Drawing.Point(6, 241); this.HVCControl.Name = "HVCControl"; this.HVCControl.SelectedIndex = 0; - this.HVCControl.Size = new System.Drawing.Size(485, 163); - this.HVCControl.TabIndex = 18; // // HVCPage1 // + resources.ApplyResources(this.HVCPage1, "HVCPage1"); this.HVCPage1.Controls.Add(this.HAdvancedControl); this.HVCPage1.Controls.Add(this.HTargetLabel); this.HVCPage1.Controls.Add(this.HTargetBox); - this.HVCPage1.Location = new System.Drawing.Point(4, 33); this.HVCPage1.Name = "HVCPage1"; - this.HVCPage1.Padding = new System.Windows.Forms.Padding(3); - this.HVCPage1.Size = new System.Drawing.Size(477, 126); - this.HVCPage1.TabIndex = 0; - this.HVCPage1.Text = "语言转换(模式一)"; this.HVCPage1.UseVisualStyleBackColor = true; // // HAdvancedControl // - this.HAdvancedControl.Location = new System.Drawing.Point(362, 47); + resources.ApplyResources(this.HAdvancedControl, "HAdvancedControl"); this.HAdvancedControl.Name = "HAdvancedControl"; - this.HAdvancedControl.Size = new System.Drawing.Size(109, 35); - this.HAdvancedControl.TabIndex = 17; - this.HAdvancedControl.Text = "高级设置"; this.HAdvancedControl.UseVisualStyleBackColor = true; this.HAdvancedControl.Click += new System.EventHandler(this.HAdvancedControl_Click); // // HTargetLabel // - this.HTargetLabel.AutoSize = true; - this.HTargetLabel.Location = new System.Drawing.Point(14, 52); + resources.ApplyResources(this.HTargetLabel, "HTargetLabel"); this.HTargetLabel.Name = "HTargetLabel"; - this.HTargetLabel.Size = new System.Drawing.Size(100, 24); - this.HTargetLabel.TabIndex = 14; - this.HTargetLabel.Text = "目标说话人"; // // HTargetBox // - this.HTargetBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.HTargetBox.Font = new System.Drawing.Font("Yu Gothic UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); + resources.ApplyResources(this.HTargetBox, "HTargetBox"); this.HTargetBox.FormattingEnabled = true; - this.HTargetBox.Location = new System.Drawing.Point(128, 48); this.HTargetBox.Name = "HTargetBox"; - this.HTargetBox.Size = new System.Drawing.Size(228, 33); - this.HTargetBox.TabIndex = 15; + this.HTargetBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.SearchSpeakers); // // HVCPage2 // + resources.ApplyResources(this.HVCPage2, "HVCPage2"); this.HVCPage2.Controls.Add(this.HOriginLabel); this.HVCPage2.Controls.Add(this.HOriginBox); this.HVCPage2.Controls.Add(this.HOriginLabel2); this.HVCPage2.Controls.Add(this.HTargetBox2); - this.HVCPage2.Location = new System.Drawing.Point(4, 33); this.HVCPage2.Name = "HVCPage2"; - this.HVCPage2.Padding = new System.Windows.Forms.Padding(3); - this.HVCPage2.Size = new System.Drawing.Size(477, 126); - this.HVCPage2.TabIndex = 1; - this.HVCPage2.Text = "语音转换(模式二)"; this.HVCPage2.UseVisualStyleBackColor = true; // // HOriginLabel // - this.HOriginLabel.AutoSize = true; - this.HOriginLabel.Location = new System.Drawing.Point(23, 32); + resources.ApplyResources(this.HOriginLabel, "HOriginLabel"); this.HOriginLabel.Name = "HOriginLabel"; - this.HOriginLabel.Size = new System.Drawing.Size(82, 24); - this.HOriginLabel.TabIndex = 21; - this.HOriginLabel.Text = "原说话人"; // // HOriginBox // - this.HOriginBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.HOriginBox.Font = new System.Drawing.Font("Yu Gothic UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); + resources.ApplyResources(this.HOriginBox, "HOriginBox"); this.HOriginBox.FormattingEnabled = true; - this.HOriginBox.Location = new System.Drawing.Point(128, 28); this.HOriginBox.Name = "HOriginBox"; - this.HOriginBox.Size = new System.Drawing.Size(343, 33); - this.HOriginBox.TabIndex = 22; + this.HOriginBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.SearchSpeakers); // // HOriginLabel2 // - this.HOriginLabel2.AutoSize = true; - this.HOriginLabel2.Location = new System.Drawing.Point(14, 71); + resources.ApplyResources(this.HOriginLabel2, "HOriginLabel2"); this.HOriginLabel2.Name = "HOriginLabel2"; - this.HOriginLabel2.Size = new System.Drawing.Size(100, 24); - this.HOriginLabel2.TabIndex = 18; - this.HOriginLabel2.Text = "目标说话人"; // // HTargetBox2 // - this.HTargetBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.HTargetBox2.Font = new System.Drawing.Font("Yu Gothic UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); + resources.ApplyResources(this.HTargetBox2, "HTargetBox2"); this.HTargetBox2.FormattingEnabled = true; - this.HTargetBox2.Location = new System.Drawing.Point(128, 67); this.HTargetBox2.Name = "HTargetBox2"; - this.HTargetBox2.Size = new System.Drawing.Size(343, 33); - this.HTargetBox2.TabIndex = 19; + this.HTargetBox2.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.SearchSpeakers); // // HModelPanel // + resources.ApplyResources(this.HModelPanel, "HModelPanel"); this.HModelPanel.Controls.Add(this.hubertPath); this.HModelPanel.Controls.Add(this.HOpenHubert); this.HModelPanel.Controls.Add(this.HConfigPath); this.HModelPanel.Controls.Add(this.HOpenConfig); this.HModelPanel.Controls.Add(this.HModelPath); this.HModelPanel.Controls.Add(this.HOpenModel); - this.HModelPanel.Location = new System.Drawing.Point(6, 6); this.HModelPanel.Name = "HModelPanel"; - this.HModelPanel.Size = new System.Drawing.Size(485, 167); - this.HModelPanel.TabIndex = 2; this.HModelPanel.TabStop = false; - this.HModelPanel.Text = "模型文件"; // // hubertPath // - this.hubertPath.Location = new System.Drawing.Point(132, 114); + resources.ApplyResources(this.hubertPath, "hubertPath"); this.hubertPath.Name = "hubertPath"; - this.hubertPath.Size = new System.Drawing.Size(347, 31); - this.hubertPath.TabIndex = 5; this.hubertPath.KeyDown += new System.Windows.Forms.KeyEventHandler(this.HubertPath_KeyDown); this.hubertPath.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.HubertPath_KeyPress); // // HOpenHubert // - this.HOpenHubert.Font = new System.Drawing.Font("微软雅黑", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.HOpenHubert.Location = new System.Drawing.Point(6, 112); + resources.ApplyResources(this.HOpenHubert, "HOpenHubert"); this.HOpenHubert.Name = "HOpenHubert"; - this.HOpenHubert.Size = new System.Drawing.Size(120, 35); - this.HOpenHubert.TabIndex = 4; - this.HOpenHubert.Text = "HuBERT模型"; this.HOpenHubert.UseVisualStyleBackColor = true; this.HOpenHubert.Click += new System.EventHandler(this.HOpenHubert_Click); // // HConfigPath // - this.HConfigPath.Location = new System.Drawing.Point(132, 73); + resources.ApplyResources(this.HConfigPath, "HConfigPath"); this.HConfigPath.Name = "HConfigPath"; - this.HConfigPath.Size = new System.Drawing.Size(347, 31); - this.HConfigPath.TabIndex = 3; this.HConfigPath.KeyDown += new System.Windows.Forms.KeyEventHandler(this.HConfigPath_KeyDown); this.HConfigPath.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.ConfigPath_KeyPress); // // HOpenConfig // - this.HOpenConfig.Location = new System.Drawing.Point(6, 71); + resources.ApplyResources(this.HOpenConfig, "HOpenConfig"); this.HOpenConfig.Name = "HOpenConfig"; - this.HOpenConfig.Size = new System.Drawing.Size(120, 35); - this.HOpenConfig.TabIndex = 2; - this.HOpenConfig.Text = "VITS配置"; this.HOpenConfig.UseVisualStyleBackColor = true; this.HOpenConfig.Click += new System.EventHandler(this.OpenConfig_Click); // // HModelPath // - this.HModelPath.Location = new System.Drawing.Point(132, 32); + resources.ApplyResources(this.HModelPath, "HModelPath"); this.HModelPath.Name = "HModelPath"; - this.HModelPath.Size = new System.Drawing.Size(347, 31); - this.HModelPath.TabIndex = 1; this.HModelPath.KeyDown += new System.Windows.Forms.KeyEventHandler(this.HModelPath_KeyDown); this.HModelPath.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.ModelPath_KeyPress); // // HOpenModel // - this.HOpenModel.Location = new System.Drawing.Point(6, 30); + resources.ApplyResources(this.HOpenModel, "HOpenModel"); this.HOpenModel.Name = "HOpenModel"; - this.HOpenModel.Size = new System.Drawing.Size(120, 35); - this.HOpenModel.TabIndex = 0; - this.HOpenModel.Text = "VITS模型"; this.HOpenModel.UseVisualStyleBackColor = true; this.HOpenModel.Click += new System.EventHandler(this.OpenModel_Click); // // HOriginPath // - this.HOriginPath.Enabled = false; - this.HOriginPath.Location = new System.Drawing.Point(138, 191); + resources.ApplyResources(this.HOriginPath, "HOriginPath"); this.HOriginPath.Name = "HOriginPath"; - this.HOriginPath.Size = new System.Drawing.Size(349, 31); - this.HOriginPath.TabIndex = 16; this.HOriginPath.KeyDown += new System.Windows.Forms.KeyEventHandler(this.HOriginPath_KeyDown); this.HOriginPath.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.OriginPath_KeyPress); // // w2v2Page // + resources.ApplyResources(this.w2v2Page, "w2v2Page"); this.w2v2Page.Controls.Add(this.WModeControl); this.w2v2Page.Controls.Add(this.WModelPanel); - this.w2v2Page.Location = new System.Drawing.Point(4, 33); this.w2v2Page.Name = "w2v2Page"; - this.w2v2Page.Size = new System.Drawing.Size(497, 410); - this.w2v2Page.TabIndex = 2; - this.w2v2Page.Text = "W2V2-VITS"; this.w2v2Page.UseVisualStyleBackColor = true; // // WModeControl // + resources.ApplyResources(this.WModeControl, "WModeControl"); this.WModeControl.Controls.Add(this.tabPage1); this.WModeControl.Controls.Add(this.tabPage2); - this.WModeControl.Enabled = false; - this.WModeControl.Location = new System.Drawing.Point(6, 179); this.WModeControl.Name = "WModeControl"; this.WModeControl.SelectedIndex = 0; - this.WModeControl.Size = new System.Drawing.Size(487, 225); - this.WModeControl.TabIndex = 4; // // tabPage1 // + resources.ApplyResources(this.tabPage1, "tabPage1"); this.tabPage1.Controls.Add(this.emotionButton); this.tabPage1.Controls.Add(this.emotionPath); this.tabPage1.Controls.Add(this.WSpeakerBox); this.tabPage1.Controls.Add(this.WSpeakerLabel); this.tabPage1.Controls.Add(this.WTextLabel); this.tabPage1.Controls.Add(this.WTextBox); - this.tabPage1.Location = new System.Drawing.Point(4, 33); this.tabPage1.Name = "tabPage1"; - this.tabPage1.Padding = new System.Windows.Forms.Padding(3); - this.tabPage1.Size = new System.Drawing.Size(479, 188); - this.tabPage1.TabIndex = 0; - this.tabPage1.Text = "语音合成"; this.tabPage1.UseVisualStyleBackColor = true; // // emotionButton // - this.emotionButton.Location = new System.Drawing.Point(6, 6); + resources.ApplyResources(this.emotionButton, "emotionButton"); this.emotionButton.Name = "emotionButton"; - this.emotionButton.Size = new System.Drawing.Size(117, 35); - this.emotionButton.TabIndex = 13; - this.emotionButton.Text = "情感参考"; this.emotionButton.UseVisualStyleBackColor = true; this.emotionButton.Click += new System.EventHandler(this.EmotionButton_Click); // // emotionPath // - this.emotionPath.Location = new System.Drawing.Point(128, 8); + resources.ApplyResources(this.emotionPath, "emotionPath"); this.emotionPath.Name = "emotionPath"; - this.emotionPath.Size = new System.Drawing.Size(344, 31); - this.emotionPath.TabIndex = 14; this.emotionPath.KeyDown += new System.Windows.Forms.KeyEventHandler(this.EmotionPath_KeyDown); this.emotionPath.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.EmotionPath_KeyPress); // // WSpeakerBox // - this.WSpeakerBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.WSpeakerBox.Font = new System.Drawing.Font("Yu Gothic UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); + resources.ApplyResources(this.WSpeakerBox, "WSpeakerBox"); this.WSpeakerBox.FormattingEnabled = true; - this.WSpeakerBox.Location = new System.Drawing.Point(128, 146); this.WSpeakerBox.Name = "WSpeakerBox"; - this.WSpeakerBox.Size = new System.Drawing.Size(344, 33); - this.WSpeakerBox.TabIndex = 3; + this.WSpeakerBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.SearchSpeakers); // // WSpeakerLabel // - this.WSpeakerLabel.AutoSize = true; - this.WSpeakerLabel.Location = new System.Drawing.Point(32, 150); + resources.ApplyResources(this.WSpeakerLabel, "WSpeakerLabel"); this.WSpeakerLabel.Name = "WSpeakerLabel"; - this.WSpeakerLabel.Size = new System.Drawing.Size(64, 24); - this.WSpeakerLabel.TabIndex = 2; - this.WSpeakerLabel.Text = "说话人"; // // WTextLabel // - this.WTextLabel.AutoSize = true; - this.WTextLabel.Location = new System.Drawing.Point(41, 81); + resources.ApplyResources(this.WTextLabel, "WTextLabel"); this.WTextLabel.Name = "WTextLabel"; - this.WTextLabel.Size = new System.Drawing.Size(46, 24); - this.WTextLabel.TabIndex = 0; - this.WTextLabel.Text = "文本"; // // WTextBox // + resources.ApplyResources(this.WTextBox, "WTextBox"); this.WTextBox.ContextMenuStrip = this.menuStrip; - this.WTextBox.Font = new System.Drawing.Font("Yu Gothic UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); - this.WTextBox.Location = new System.Drawing.Point(128, 47); - this.WTextBox.Multiline = true; this.WTextBox.Name = "WTextBox"; - this.WTextBox.Size = new System.Drawing.Size(344, 93); - this.WTextBox.TabIndex = 1; this.WTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TextBox_KeyDown); // // tabPage2 // + resources.ApplyResources(this.tabPage2, "tabPage2"); this.tabPage2.Controls.Add(this.WOpenOrigin); this.tabPage2.Controls.Add(this.WOriginPath); this.tabPage2.Controls.Add(this.WOriginBox); this.tabPage2.Controls.Add(this.WOriginLabel); this.tabPage2.Controls.Add(this.WTargetBox); this.tabPage2.Controls.Add(this.WTargetLabel); - this.tabPage2.Location = new System.Drawing.Point(4, 33); this.tabPage2.Name = "tabPage2"; - this.tabPage2.Padding = new System.Windows.Forms.Padding(3); - this.tabPage2.Size = new System.Drawing.Size(479, 188); - this.tabPage2.TabIndex = 1; - this.tabPage2.Text = "语音转换"; this.tabPage2.UseVisualStyleBackColor = true; // // WOpenOrigin // - this.WOpenOrigin.Location = new System.Drawing.Point(6, 28); + resources.ApplyResources(this.WOpenOrigin, "WOpenOrigin"); this.WOpenOrigin.Name = "WOpenOrigin"; - this.WOpenOrigin.Size = new System.Drawing.Size(116, 35); - this.WOpenOrigin.TabIndex = 4; - this.WOpenOrigin.Text = "打开原音频"; this.WOpenOrigin.UseVisualStyleBackColor = true; this.WOpenOrigin.Click += new System.EventHandler(this.OpenOrigin_Click); // // WOriginPath // - this.WOriginPath.Location = new System.Drawing.Point(128, 30); + resources.ApplyResources(this.WOriginPath, "WOriginPath"); this.WOriginPath.Name = "WOriginPath"; - this.WOriginPath.Size = new System.Drawing.Size(344, 31); - this.WOriginPath.TabIndex = 12; this.WOriginPath.KeyDown += new System.Windows.Forms.KeyEventHandler(this.OriginPath_KeyDown); this.WOriginPath.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.OriginPath_KeyPress); // // WOriginBox // - this.WOriginBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.WOriginBox.Font = new System.Drawing.Font("Yu Gothic UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); + resources.ApplyResources(this.WOriginBox, "WOriginBox"); this.WOriginBox.FormattingEnabled = true; - this.WOriginBox.Location = new System.Drawing.Point(128, 89); this.WOriginBox.Name = "WOriginBox"; - this.WOriginBox.Size = new System.Drawing.Size(344, 33); - this.WOriginBox.TabIndex = 10; + this.WOriginBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.SearchSpeakers); // // WOriginLabel // - this.WOriginLabel.AutoSize = true; - this.WOriginLabel.Location = new System.Drawing.Point(23, 93); + resources.ApplyResources(this.WOriginLabel, "WOriginLabel"); this.WOriginLabel.Name = "WOriginLabel"; - this.WOriginLabel.Size = new System.Drawing.Size(82, 24); - this.WOriginLabel.TabIndex = 9; - this.WOriginLabel.Text = "原说话人"; // // WTargetBox // - this.WTargetBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.WTargetBox.Font = new System.Drawing.Font("Yu Gothic UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); + resources.ApplyResources(this.WTargetBox, "WTargetBox"); this.WTargetBox.FormattingEnabled = true; - this.WTargetBox.Location = new System.Drawing.Point(128, 128); this.WTargetBox.Name = "WTargetBox"; - this.WTargetBox.Size = new System.Drawing.Size(344, 33); - this.WTargetBox.TabIndex = 8; + this.WTargetBox.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.SearchSpeakers); // // WTargetLabel // - this.WTargetLabel.AutoSize = true; - this.WTargetLabel.Location = new System.Drawing.Point(14, 132); + resources.ApplyResources(this.WTargetLabel, "WTargetLabel"); this.WTargetLabel.Name = "WTargetLabel"; - this.WTargetLabel.Size = new System.Drawing.Size(100, 24); - this.WTargetLabel.TabIndex = 7; - this.WTargetLabel.Text = "目标说话人"; // // WModelPanel // + resources.ApplyResources(this.WModelPanel, "WModelPanel"); this.WModelPanel.Controls.Add(this.W2V2Path); this.WModelPanel.Controls.Add(this.W2V2Model); this.WModelPanel.Controls.Add(this.WConfigPath); this.WModelPanel.Controls.Add(this.WOpenConfig); this.WModelPanel.Controls.Add(this.WModelPath); this.WModelPanel.Controls.Add(this.WOpenModel); - this.WModelPanel.Location = new System.Drawing.Point(6, 6); this.WModelPanel.Name = "WModelPanel"; - this.WModelPanel.Size = new System.Drawing.Size(485, 167); - this.WModelPanel.TabIndex = 3; this.WModelPanel.TabStop = false; - this.WModelPanel.Text = "模型文件"; // // W2V2Path // - this.W2V2Path.Location = new System.Drawing.Point(132, 114); + resources.ApplyResources(this.W2V2Path, "W2V2Path"); this.W2V2Path.Name = "W2V2Path"; - this.W2V2Path.Size = new System.Drawing.Size(347, 31); - this.W2V2Path.TabIndex = 5; this.W2V2Path.KeyDown += new System.Windows.Forms.KeyEventHandler(this.W2V2Path_KeyDown); this.W2V2Path.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.W2V2Path_KeyPress); // // W2V2Model // - this.W2V2Model.Font = new System.Drawing.Font("微软雅黑", 8F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); - this.W2V2Model.Location = new System.Drawing.Point(6, 112); + resources.ApplyResources(this.W2V2Model, "W2V2Model"); this.W2V2Model.Name = "W2V2Model"; - this.W2V2Model.Size = new System.Drawing.Size(120, 35); - this.W2V2Model.TabIndex = 4; - this.W2V2Model.Text = "情感识别模型"; this.W2V2Model.UseVisualStyleBackColor = true; this.W2V2Model.Click += new System.EventHandler(this.W2V2Model_Click); // // WConfigPath // - this.WConfigPath.Location = new System.Drawing.Point(132, 73); + resources.ApplyResources(this.WConfigPath, "WConfigPath"); this.WConfigPath.Name = "WConfigPath"; - this.WConfigPath.Size = new System.Drawing.Size(347, 31); - this.WConfigPath.TabIndex = 3; this.WConfigPath.KeyDown += new System.Windows.Forms.KeyEventHandler(this.WConfigPath_KeyDown); this.WConfigPath.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.ConfigPath_KeyPress); // // WOpenConfig // - this.WOpenConfig.Location = new System.Drawing.Point(6, 71); + resources.ApplyResources(this.WOpenConfig, "WOpenConfig"); this.WOpenConfig.Name = "WOpenConfig"; - this.WOpenConfig.Size = new System.Drawing.Size(120, 35); - this.WOpenConfig.TabIndex = 2; - this.WOpenConfig.Text = "VITS配置"; this.WOpenConfig.UseVisualStyleBackColor = true; this.WOpenConfig.Click += new System.EventHandler(this.OpenConfig_Click); // // WModelPath // - this.WModelPath.Location = new System.Drawing.Point(132, 32); + resources.ApplyResources(this.WModelPath, "WModelPath"); this.WModelPath.Name = "WModelPath"; - this.WModelPath.Size = new System.Drawing.Size(347, 31); - this.WModelPath.TabIndex = 1; this.WModelPath.KeyDown += new System.Windows.Forms.KeyEventHandler(this.WModelPath_KeyDown); this.WModelPath.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.ModelPath_KeyPress); // // WOpenModel // - this.WOpenModel.Location = new System.Drawing.Point(6, 30); + resources.ApplyResources(this.WOpenModel, "WOpenModel"); this.WOpenModel.Name = "WOpenModel"; - this.WOpenModel.Size = new System.Drawing.Size(120, 35); - this.WOpenModel.TabIndex = 0; - this.WOpenModel.Text = "VITS模型"; this.WOpenModel.UseVisualStyleBackColor = true; this.WOpenModel.Click += new System.EventHandler(this.OpenModel_Click); // // MainWin // - this.AutoScaleDimensions = new System.Drawing.SizeF(144F, 144F); + resources.ApplyResources(this, "$this"); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; - this.ClientSize = new System.Drawing.Size(977, 701); this.Controls.Add(this.modelControl); this.Controls.Add(this.consoleBox); this.Controls.Add(this.savePanel); this.Controls.Add(this.EXEPanel); - this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.Margin = new System.Windows.Forms.Padding(4); this.MaximizeBox = false; this.Name = "MainWin"; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "MoeGoe"; this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.MainWin_FormClosed); this.EXEPanel.ResumeLayout(false); this.EXEPanel.PerformLayout(); diff --git a/MoeGoe_GUI/MainWin.cs b/MoeGoe_GUI/MainWin.cs index 55947c8..70c326a 100644 --- a/MoeGoe_GUI/MainWin.cs +++ b/MoeGoe_GUI/MainWin.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.IO; +using System.Linq; using System.Media; using System.Text.RegularExpressions; using System.Threading; @@ -52,7 +53,9 @@ public MainWin() NOISESCALEW = 0.8M; F0SCALE = 1; + SPEAKERS = new List(); SYMBOLS = new List(); + SPEAKERIDDICT = new Dictionary>(); SHOWLOG = true; isSeeking = false; } @@ -76,7 +79,11 @@ public MainWin() private decimal NOISESCALEW; private decimal F0SCALE; + private readonly List SPEAKERS; private readonly List SYMBOLS; + + private readonly Dictionary> SPEAKERIDDICT; + private bool USEF0; private bool SHOWLOG; @@ -102,15 +109,19 @@ private void ClearVITS() private void ClearMode() { consoleBox.Clear(); + SHOWLOG = true; textBox.Clear(); speakerBox.Items.Clear(); + speakerBox.Text = ""; LENGTHSCALE = 1; NOISESCALE = 0.667M; NOISESCALEW = 0.8M; originPath.Clear(); ORIGINPATH = null; originBox.Items.Clear(); + originBox.Text = ""; targetBox.Items.Clear(); + targetBox.Text = ""; modeControl.Enabled = false; ClearSavePanel(); } @@ -129,17 +140,21 @@ private void ClearHubertVITS() private void ClearHubertMode() { consoleBox.Clear(); + SHOWLOG = true; HOriginPath.Clear(); ORIGINPATH = null; HOpenOrigin.Enabled = false; HOriginPath.Enabled = false; HTargetBox.Items.Clear(); + HTargetBox.Text = ""; LENGTHSCALE = 1; NOISESCALE = 0.1M; NOISESCALEW = 0.1M; F0SCALE = 1; HOriginBox.Items.Clear(); + HOriginBox.Text = ""; HTargetBox2.Items.Clear(); + HTargetBox2.Text = ""; HVCControl.Enabled = false; ClearSavePanel(); } @@ -158,17 +173,21 @@ private void ClearW2V2VITS() private void ClearW2V2Mode() { consoleBox.Clear(); + SHOWLOG = true; emotionPath.Clear(); EMOTIONPATH = null; WTextBox.Clear(); WSpeakerBox.Items.Clear(); + WSpeakerBox.Text = ""; LENGTHSCALE = 1; NOISESCALE = 0.667M; NOISESCALEW = 0.8M; WOriginPath.Clear(); ORIGINPATH = null; WOriginBox.Items.Clear(); + WOriginBox.Text = ""; WTargetBox.Items.Clear(); + WTargetBox.Text = ""; WModeControl.Enabled = false; ClearSavePanel(); } @@ -190,7 +209,7 @@ private void OpenEXE_Click(object sender, EventArgs e) { OpenFileDialog ofd = new OpenFileDialog { - Filter = "可执行文件|*.exe" + Filter = "|MoeGoe.exe" }; if (ofd.ShowDialog() == DialogResult.OK) { @@ -349,6 +368,8 @@ private bool LoadJsonList(string json, string key, Action action) string speaker = Regex.Unescape(matches[i].Groups[1].Value); action(speaker); } + if (matches.Count > 100) + SHOWLOG = false; } return true; } @@ -365,7 +386,7 @@ private void InitializeSpeakers() USEF0 = false; Match match = Regex.Match(json, "\"speakers\"\\s*:\\s*\\[((?:\\s*\"(?:(?:\\\\.)|[^\\\\\"])*\"\\s*,?\\s*)*)\\]"); - if (!LoadJsonList(json, "speakers", AddSpeaker)) + if (!LoadJsonList(json, "speakers", SPEAKERS.Add)) { match = Regex.Match(json, "\"n_speakers\"\\s*:\\s*(\\d+)"); @@ -373,36 +394,35 @@ private void InitializeSpeakers() if (match.Success) nspeakers = int.Parse(match.Groups[1].Value); if (nspeakers == 0) - AddSpeaker("0"); + SPEAKERS.Add("0"); else for (int i = 0; i < nspeakers; i++) - AddSpeaker(i.ToString()); + SPEAKERS.Add(i.ToString()); } - if (speakerBox.Items.Count > 100) - SHOWLOG = false; + AddSpeakers(); SYMBOLS.Clear(); LoadJsonList(json, "symbols", SYMBOLS.Add); GetStart(); } - private void AddSpeaker(string speaker) + private void AddSpeakers() { switch (modelControl.SelectedIndex) { case 0: - speakerBox.Items.Add(speaker); - originBox.Items.Add(speaker); - targetBox.Items.Add(speaker); + SelectSpeakers(speakerBox); + SelectSpeakers(originBox); + SelectSpeakers(targetBox); break; case 1: - HTargetBox.Items.Add(speaker); - HTargetBox2.Items.Add(speaker); - HOriginBox.Items.Add(speaker); + SelectSpeakers(HTargetBox); + SelectSpeakers(HTargetBox2); + SelectSpeakers(HOriginBox); break; case 2: - WSpeakerBox.Items.Add(speaker); - WOriginBox.Items.Add(speaker); - WTargetBox.Items.Add(speaker); + SelectSpeakers(WSpeakerBox); + SelectSpeakers(WOriginBox); + SelectSpeakers(WTargetBox); break; } } @@ -635,10 +655,10 @@ private void SaveAudio() switch (modeControl.SelectedIndex) { case 0: - TTS(textBox.Text, speakerBox.SelectedIndex); + TTS(textBox.Text, GetSelectedID(speakerBox)); break; case 1: - VC(originBox.SelectedIndex, targetBox.SelectedIndex); + VC(GetSelectedID(originBox), GetSelectedID(targetBox)); break; } cmd.Write(SAVEPATH); @@ -648,7 +668,7 @@ private void SaveAudio() { case 0: cmd.Write(ORIGINPATH); - cmd.Write(HTargetBox.SelectedIndex.ToString()); + cmd.Write(GetSelectedID(HTargetBox).ToString()); if (USEF0) cmd.Write($"[LENGTH={LENGTHSCALE}][NOISE={NOISESCALE}][NOISEW={NOISESCALEW}][F0={F0SCALE}]{SAVEPATH}"); else @@ -657,8 +677,8 @@ private void SaveAudio() case 1: cmd.Write($"[VC]"); cmd.Write(ORIGINPATH); - cmd.Write(HOriginBox.SelectedIndex.ToString()); - cmd.Write(HTargetBox2.SelectedIndex.ToString()); + cmd.Write(GetSelectedID(HOriginBox).ToString()); + cmd.Write(GetSelectedID(HTargetBox2).ToString()); cmd.Write(SAVEPATH); break; } @@ -667,11 +687,11 @@ private void SaveAudio() switch (WModeControl.SelectedIndex) { case 0: - TTS(WTextBox.Text, WSpeakerBox.SelectedIndex); + TTS(WTextBox.Text, GetSelectedID(WSpeakerBox)); cmd.Write(EMOTIONPATH); break; case 1: - VC(WOriginBox.SelectedIndex, WTargetBox.SelectedIndex); + VC(GetSelectedID(WOriginBox), GetSelectedID(WTargetBox)); break; } cmd.Write(SAVEPATH); @@ -702,6 +722,11 @@ private void SaveAudio() }); } + private int GetSelectedID(ComboBox box) + { + return SPEAKERIDDICT[box][box.SelectedIndex]; + } + private void TTS(string text, int speaker) { cmd.Write("t"); @@ -1059,6 +1084,27 @@ private void EmotionPath_KeyDown(object sender, KeyEventArgs e) { GetHistory(emotionPath, "EMOTIONPATHS", e); } + + private void SearchSpeakers(object sender, KeyPressEventArgs e) + { + if (e.KeyChar == '\r') + SelectSpeakers(sender as ComboBox); + } + + private void SelectSpeakers(ComboBox box) + { + box.Items.Clear(); + if (!SPEAKERIDDICT.ContainsKey(box)) + SPEAKERIDDICT.Add(box, new Dictionary()); + else + SPEAKERIDDICT[box].Clear(); + for (int i = 0; i < SPEAKERS.Count; i++) + if (SPEAKERS[i].Contains(box.Text)) + { + box.Items.Add(SPEAKERS[i]); + SPEAKERIDDICT[box].Add(box.Items.Count - 1, i); + } + } } public class ExList diff --git a/MoeGoe_GUI/MainWin.ja-JP.resx b/MoeGoe_GUI/MainWin.ja-JP.resx new file mode 100644 index 0000000..3ed4c85 --- /dev/null +++ b/MoeGoe_GUI/MainWin.ja-JP.resx @@ -0,0 +1,552 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + + 144, 32 + + + 350, 31 + + + 132, 34 + + + ファイルを開く... + + + モデルファイル + + + 348, 31 + + + 設定を開く... + + + 348, 31 + + + モデルを開く... + + + 4, 34 + + + 480, 229 + + + 音声合成 + + + 発音表記... + + + 符号入力... + + + パラメータ... + + + 61, 25 + + + 話し手 + + + 26, 63 + + + 66, 25 + + + テキスト + + + 4, 34 + + + 480, 229 + + + 音声変換 + + + 128, 34 + + + 変換元を開く... + + + 146, 40 + + + 326, 31 + + + 146, 106 + + + 326, 33 + + + 12, 111 + + + 130, 25 + + + 変換元の話し手 + + + 146, 156 + + + 326, 33 + + + 12, 160 + + + 130, 25 + + + 変換先の話し手 + + + ファイルを保存 + + + 削除 + + + 再合成 + + + 再生 + + + 362, 31 + + + 保存... + + + 4, 34 + + + 498, 409 + + + 4, 34 + + + 498, 409 + + + 感情抽出元 + + + 344, 31 + + + 34, 150 + + + 61, 25 + + + 話し手 + + + 31, 81 + + + 66, 25 + + + テキスト + + + 4, 34 + + + 480, 187 + + + 音声合成 + + + 4, 34 + + + 480, 187 + + + 音声変換 + + + モデルファイル + + + 4, 34 + + + 498, 409 + + + 142, 34 + + + 変換元を開く... + + + 4, 34 + + + 476, 126 + + + 音声変換(モード1) + + + 詳細設定 + + + 130, 25 + + + 変換先の話し手 + + + 147, 48 + + + 211, 33 + + + 4, 34 + + + 476, 126 + + + 音声変換(モード2) + + + 16, 32 + + + 130, 25 + + + 変換元の話し手 + + + 149, 28 + + + 321, 33 + + + 16, 70 + + + 130, 25 + + + 変換先の話し手 + + + 149, 68 + + + 321, 33 + + + モデルファイル + + + 153, 114 + + + 326, 31 + + + + + + + 141, 34 + + + HuBERTモデル... + + + 153, 74 + + + 326, 31 + + + 141, 34 + + + VITS設定... + + + 153, 32 + + + 326, 31 + + + 141, 34 + + + VITSモデル... + + + 159, 190 + + + 328, 31 + + + 137, 34 + + + 変換元を開く... + + + 149, 30 + + + 323, 31 + + + 149, 88 + + + 323, 33 + + + 9, 93 + + + 130, 25 + + + 変換元の話し手 + + + 149, 128 + + + 323, 33 + + + 9, 132 + + + 130, 25 + + + 変換先の話し手 + + + 153, 114 + + + 327, 31 + + + 141, 34 + + + 感情認識モデル + + + 153, 74 + + + 327, 31 + + + 141, 34 + + + VITS設定... + + + 153, 32 + + + 327, 31 + + + 141, 34 + + + VITSモデル... + + + Yu Gothic UI, 9pt + + + + AAABAAIADxAAAAAAIADwAgAAJgAAABcYAAAAACAAoAQAABYDAACJUE5HDQoaCgAAAA1JSERSAAAADwAA + ABAIBgAAAMlWJQQAAAK3SURBVHicZZPNa5xVFMZ/5977vu98JDMxJmM6pukUQkfFpisXShdZuNBuXCiI + G8G17vwP3LgQdCEFKagr3QhWcKOgoIUqYrVYF9XaokhsPuajk6Qzd96Z957bRZpF7IGHs/rBcw7PIxff + vrPuJ/LR7mjYilBAFP43ghCFKGBq5cr21s5vb7x5fv2i2/P5B/2RO9nb92rEJIdABIwcbA0RVQFRfeSh + SrNUarzbPnHmqhnnevzO3d0YNJqpKofSqPhxwPtAUob5JcUmQbb7u7GIrlFKslMuRC1EjIBy6NcYGHto + NC3PPJuysupIUvCjgm8+H0rvVq7WRnEIR240Bvwo0l5znHu5zEzNMJ1EQoCV1hyrax1uXe1KNatj7n/k + ALQw9pH2accLr1YolQQ/ikwnSlTl1ys3+fKz38lKGeNQ4GIEDQIIuYfFY5Zzr5QxBvKxIkZIM8cnH//I + pa93aC6eZq5RZzTcww02S3QGBZMigMKLrxlmZoWxF2pzZayFXm+XP6/luPwsMjlGf6tLkVucsZAkMBpG + zj4vnFoDPxLGPufydzf47999fr7cYdhtsjBfJYQckwnOgkvSAiPKfCPw3EsVyuWEatXww/f/cOGdG9TK + jzE7e4JHl2qoBtJESZIAgEtLkaAFT68n7N3tcunTTTY39rl2ZUBr5Qz1WpNQTAlaYGMkTSIujQdwQGOz + ZXjiqZz33vqJ/d4ClfIC8/U2WZoRo8c4MAgxRlyiWEeEgEsMVqpRv/riDwnjJR5vP4lqIISAxnA05FGi + tQVphrFZKm52hk7fV1vdzjKt4zMgihWw1gLuCKsaZHHuYdTfHO30Nrzr9v96vV4/+X6rUWkWYarI5IFW + 3W9KNGLEhtvDb3+58OHWYOO6ACzXFldrteXVvMixzgHFA2wA0pjK9uDvaX+4ex24fQ9DHz/QI1n8fAAA + AABJRU5ErkJggolQTkcNChoKAAAADUlIRFIAAAAXAAAAGAgGAAAAEXxmdQAABGdJREFUeJyVlU1sVFUY + hp/vnHNnbn9op51hSmmBUhJEDSAKQVBQw4JAYoKsTFy40LjRpQujCxN1Z2Lc60JWRI2amGAMIUEC0Sgk + IAoIlL8KaOkfnc5PZ+6953Nxx5YfsfAmZ3Nz7pvzPef9viMH3z3oRu2jrycqb89ESc6DBxUeQIIQGMHi + fz4zfOjN9z978aiqihtzj7yEtH48MjlFPY7x+iCmczKCLsrltw70rv9i96Y3dgBnXex5a6xc9hPVOon3 + hvnMBaS5vG8aGwFViSbGkiVdXQOrBje8IiLvuEakhVrUMN4rOo+xCKhCfQaSWMmEIKKUpyFssTibkBBo + giwGul3svUcFnefIIhA1wAaw4mFD34BjQU4wxjM5rpw+XmVq1IjmkXqjboDAiagocE9vSdk2GtC7xLBl + R5a+pZb2DoNqWokLhIfWKl9+MqIztTzijAC4eQiDQhTB2o2O554PaWkV4ggq0zp7o3EUMzDYxaKBC0z8 + MYrBMK+5CDTqypPbMjyzM8T7lLcIGDt3B+3tWUqlGc6cvkiX75r939EsTfV2MsZAow4bn8uwdUdIEqd7 + jGkWpJAkijFw6eIIe/ccZngoYfm6AhPTaYycsYp16dJbjOs1WLna8fT2EPWpmfwbbE3jd/zYBfbv+52r + l8o4k2dw6Ura2hYgTSdXngoolTxTtTSKYoSooRR6YNuuDEEgNBraRJDuUa8saGuhsLCTPy9kCGUTne0L + SeoBlcksjUp6ClebclRKynQV1DebI4EtLwtdBWGmmpZurcEYgwsMSeKp1er88uNlyhMttOZ6qd4MiaxS + cQH1mk3Ng4ySySqZxCMCtQpseBbWb3HUaykiVZiaqlKtzFAtR1w4P8rB74cYOhVT7F5N2GrAxwROyGQV + 24yJM1YR67HWkyRCvkfZ9oIj8Zq2tyoLOkL2fXOCfV8NUbkZUK9n6OrsZ1nfYsJMLm0G5zFWEKuIaTK3 + xuNEyWaU0k1l/U5D34AlmrG0txviJEHxjFybpjZZYHDpGgIbomqZDbqmYXBWccZjmp+dBIrLKj5SunuU + dZuzlEsNRkfKVCoNrl6Z4NCBcwyf9yxZ+jhh2NqcQcqdbe0s2EAR04yitYINPKoJ657K0N4d8dEHP/D3 + 1Qo3x5UkCsjleulftJgw24GIn4vkHbJWMAG3MHdpiLuLsG1XK1/vPcZvR0ssW7KG4vIcLsjCLIK7Tzsn + xViDtR5mmVtRI0p+oeHUiescOXCZ5ctWUejuxyd6y7T03P483C1nwdq5LnaZABu24EeuRXJ2z7i0ZPrp + 7OxBicHcaXfvsSwC1nmCALIu5eLiuHqo0FncXY2jKEePaLuKiAX0nmz/S0ZEc61tLkmmkzOXj1wExI2P + n3svn5cnViwsLos1zfeDSkiRkJQ5ef67I9/+9Onhjo7+sgDs3PzqYxtWbn+t1oiKiUZ3wbgfWTFc+evX + 658f/HA/cBIYFlUVEVEgBPLczwPyP0UU24q1G5UbY0DyD3v09pgP+K7BAAAAAElFTkSuQmCC + + + + 4, 4, 4, 4 + + \ No newline at end of file diff --git a/MoeGoe_GUI/MainWin.resx b/MoeGoe_GUI/MainWin.resx index be4707e..28a1ca4 100644 --- a/MoeGoe_GUI/MainWin.resx +++ b/MoeGoe_GUI/MainWin.resx @@ -117,10 +117,1329 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - 17, 17 - + + 打开原音频 + + + + True + + + 13 + + + 111, 34 + + + 476, 127 + + + 保存 + + + 情感参考 + + + 348, 30 + + + 2 + + + 4, 33 + + + 14, 132 + + + 100, 24 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 1 + + + 0 + + + w2v2Page + + + 343, 33 + + + WSpeakerLabel + + + 0 + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + TTSPage + + + 4, 33 + + + System.Windows.Forms.TabControl, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 152, 30 + + + tabPage2 + + + savePanel + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + savePanel + + + 12 + + + VCPage + + + + 3, 3, 3, 3 + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 3, 3, 3, 3 + + + 120, 34 + + + WTextBox + + + 6, 30 + + + VCPage + + + savePanel + + + System.Windows.Forms.TabControl, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + HConfigPath + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 19 + + + 116, 34 + + + 480, 188 + + + 10 + + + tabPage2 + + + System.Windows.Forms.TabControl, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 4, 33 + + + System.Windows.Forms.TabPage, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + hubertPage + + + 0 + + + targetBox + + + 0 + + + WModelPanel + + + 1 + + + 3 + + + 6, 6 + + + 2 + + + 46, 24 + + + False + + + 362, 46 + + + Microsoft YaHei UI, 9pt + + + WOpenOrigin + + + W2V2Path + + + 100, 24 + + + WConfigPath + + + True + + + modelControl + + + 6, 136 + + + WModeControl + + + HOpenConfig + + + Yu Gothic UI, 9pt + + + 打开配置 + + + 3 + + + 5 + + + 344, 92 + + + 3, 3, 3, 3 + + + System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + HVCControl + + + 1 + + + 4 + + + 目标说话人 + + + MoeGoe + + + System.Windows.Forms.Form, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 6, 112 + + + tabPage1 + + + modelPanel + + + 132, 74 + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 132, 74 + + + 0 + + + HOpenModel + + + 22, 32 + + + 0 + + + 4 + + + System.Windows.Forms.TabPage, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 120, 34 + + + WOriginPath + + + 38, 63 + + + System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 120, 34 + + + Yu Gothic UI, 9pt + + + VCPage + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 118, 18 + + + WModelPanel + + + modelPanel + + + 132, 114 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Yu Gothic UI, 9pt + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + savePanel + + + TTSPage + + + 8 + + + modelPanel + + + System.Windows.Forms.TabControl, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 40, 81 + + + cleanButton2 + + + 5 + + + 12, 12 + + + Microsoft YaHei UI, 9pt + + + System.Windows.Forms.TabPage, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 语音转换 + + + 2 + + + Yu Gothic UI, 9pt + + + originLabel + + + WModelPanel + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 参数设置 + + + modelControl + + + originBox + + + 18 + + + 6, 112 + + + 7 + + + 12, 104 + + + 3 + + + 16 + + + 128, 46 + + + 5 + + + HVCPage2 + + + tabPage2 + + + 976, 700 + + + hubertPage + + + HOriginLabel2 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 4 + + + 6, 28 + + + 28, 183 + + + HVCControl + + + 64, 24 + + + TTSPage + + + 0 + + + deleteButton + + + 0 + + + 120, 34 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 0 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + tabPage1 + + + HModelPanel + + + 6, 70 + + + 1 + + + 348, 30 + + + 2 + + + 7 + + + 488, 225 + + + 128, 106 + + + VITS配置 + + + 120, 34 + + + 128, 88 + + + 情感识别模型 + + + speakerLabel + + + HOriginPath + + + 6, 178 + + + 344, 30 + + + 4 + + + HVCPage1 + + + playButton + + + 1 + + + 484, 166 + + + False + + + System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + hubertPage + + + 2 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 1 + + + tabPage1 + + + 原说话人 + + + HOriginLabel + + + 100, 24 + + + 1 + + + HVCControl + + + VCPage + + + 3 + + + False + + + 120, 34 + + + 14 + + + 362, 30 + + + 484, 124 + + + 344, 33 + + + Vertical + + + 108, 34 + + + HTargetBox + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 5 + + + 6, 70 + + + System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + vitsPage + + + VITS模型 + + + 506, 447 + + + 6, 6 + + + System.Windows.Forms.ContextMenuStrip, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 原说话人 + + + 高级设置 + + + 118, 178 + + + 4, 33 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 498, 410 + + + 6 + + + 1 + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 132, 70 + + + 1 + + + 153, 94 + + + TTSPage + + + True + + + 528, 24 + + + System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 3 + + + 5 + + + 语言转换(模式一) + + + WOpenConfig + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + WTargetLabel + + + 1 + + + True + + + 10, 189 + + + Microsoft YaHei UI, 8pt + + + 32, 150 + + + 480, 230 + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + openOrigin + + + configPath + + + 0 + + + 82, 24 + + + 打开模型 + + + 5 + + + True + + + 132, 114 + + + tabPage2 + + + 498, 410 + + + tabPage2 + + + 目标说话人 + + + 0 + + + w2v2Page + + + System.Windows.Forms.TabPage, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 1 + + + 132, 74 + + + 说话人 + + + False + + + 打开原音频 + + + 348, 30 + + + System.Windows.Forms.TabPage, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 6, 6, 6, 6 + + + 436, 656 + + + TTSPage + + + False + + + 4 + + + 138, 190 + + + 380, 70 + + + 0 + + + 0 + + + 0 + + + True + + + 文本 + + + Microsoft YaHei UI, 8pt + + + 132, 32 + + + HOpenOrigin + + + 目标说话人 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + HModelPanel + + + True + + + menuStrip + + + 0 + + + TTSPage + + + MainWin + + + HModelPanel + + + HuBERT-VITS + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 1 + + + HVCPage2 + + + 4, 33 + + + 82, 24 + + + 0 + + + tabPage2 + + + 343, 33 + + + 语音转换 + + + 3 + + + True + + + 22 + + + 4, 33 + + + 15 + + + openEXE + + + 4 + + + 3 + + + HVCPage2 + + + VCPage + + + modeControl + + + 14, 70 + + + 1 + + + 2 + + + TTSPage + + + System.Windows.Forms.TabPage, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 128, 48 + + + 1 + + + HAdvancedControl + + + WModeControl + + + 26, 110 + + + originPath + + + System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 5 + + + paramsButton2 + + + HVCPage1 + + + 2 + + + 120, 34 + + + System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 语音合成 + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + paramsButton + + + 128, 128 + + + 2 + + + 5 + + + System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 111, 34 + + + TTSPage + + + System.Windows.Forms.TabPage, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 6, 30 + + + 116, 34 + + + 0 + + + 128, 8 + + + 0 + + + 3 + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + emotionButton + + + textBox + + + 2 + + + 6, 242 + + + hubertPath + + + VITS + + + 120, 34 + + + 1 + + + modelPanel + + + openConfig + + + WModelPanel + + + 344, 33 + + + 9 + + + 8 + + + Yu Gothic UI, 9pt + + + 2 + + + 4 + + + 128, 156 + + + 120, 34 + + + 82, 24 + + + HModelPanel + + + 1 + + + 4 + + + 3 + + + Yu Gothic UI, 9pt + + + 2 + + + hubertPage + + + 476, 127 + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 重新合成 + + + 344, 30 + + + True + + + W2V2-VITS + + + WTextLabel + + + 5 + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 22, 93 + + + 3 + + + System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + HOriginBox + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 344, 114 + + + 351, 138 + + + 1 + + + 228, 33 + + + 6, 70 + + + saveButton + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 21 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + savePanel + + + HModelPanel + + + HVCPage1 + + + 480, 230 + + + 348, 30 + + + 8 + + + WSpeakerBox + + + 152, 30 + + + 3 + + + 480, 188 + + + 12, 556 + + + 3 + + + 117, 34 + + + False + + + 16, 160 + + + 18 + + + vitsPage + + + 488, 267 + + + resaveButton + + + WModelPanel + + + False + + + modelPath + + + 17 + + + 清理文本 + + + 498, 410 + + + 122, 34 + + + 0 + + + 348, 30 + + + 128, 146 + + + 9 + + + 6, 30 + + + W2V2Model + + + symbolsButton2 + + + 2 + + + 128, 30 + + + EXEPanel + + + tabPage1 + + + 2 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 256, 70 + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + AAABAAIADxAAAAAAIADwAgAAJgAAABcYAAAAACAAoAQAABYDAACJUE5HDQoaCgAAAA1JSERSAAAADwAA @@ -158,4 +1477,661 @@ 658f/HA/cBIYFlUVEVEgBPLczwPyP0UU24q1G5UbY0DyD3v09pgP+K7BAAAAAElFTkSuQmCC + + 2 + + + symbolsButton + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 2 + + + 3 + + + 模型文件 + + + 1 + + + tabPage1 + + + Yu Gothic UI, 9pt + + + 3, 3, 3, 3 + + + 1 + + + savePanel + + + 14, 52 + + + 118, 138 + + + HVCPage2 + + + 清理文本 + + + 128, 68 + + + System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 语音转换(模式二) + + + 1 + + + 4, 33 + + + 344, 33 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 1 + + + 0 + + + modelControl + + + 3 + + + 说话人 + + + HVCPage2 + + + VITS模型 + + + 116, 34 + + + 501, 86 + + + True + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + textLabel + + + System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 0 + + + 13 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + stopButton + + + 2 + + + 5 + + + 0 + + + False + + + 3 + + + 0 + + + HTargetBox2 + + + consoleBox + + + $this + + + 344, 33 + + + WModelPanel + + + 64, 24 + + + True + + + 3 + + + emotionPath + + + 116, 34 + + + 0 + + + 12, 39 + + + VCPage + + + False + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + WModelPanel + + + HModelPath + + + 4, 33 + + + 3, 3, 3, 3 + + + 目标说话人 + + + WTargetBox + + + 语音合成 + + + Yu Gothic UI, 9pt + + + 348, 30 + + + 120, 34 + + + 3 + + + Yu Gothic UI, 9pt + + + 打开文件 + + + savePanel + + + WOriginLabel + + + WModelPath + + + 1 + + + EXEPanel + + + 348, 30 + + + 348, 30 + + + 0 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Yu Gothic UI, 9pt + + + 1 + + + System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + False + + + 6, 6 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 344, 33 + + + hubertPage + + + 6, 30 + + + HModelPanel + + + 6, 30 + + + WOpenModel + + + True + + + 4 + + + 1 + + + 4 + + + 132, 32 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 0 + + + 1 + + + w2v2Page + + + 1 + + + 2 + + + tabPage1 + + + 111, 34 + + + 46, 24 + + + HTargetLabel + + + VCPage + + + 344, 30 + + + 120, 34 + + + 删除 + + + openModel + + + WOriginBox + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 12 + + + 349, 30 + + + speakerBox + + + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Yu Gothic UI, 9pt + + + 模型文件 + + + 文本 + + + targetLabel + + + 2 + + + EXEPanel + + + 2 + + + System.Windows.Forms.ComboBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 参数设置 + + + modeControl + + + 0 + + + 144, 144 + + + tabPage2 + + + 模型文件 + + + 符号输入 + + + 132, 32 + + + $this + + + 484, 164 + + + 6, 70 + + + 6, 6 + + + modelControl + + + vitsPage + + + 4 + + + 打开原音频 + + + 0 + + + 10 + + + savePath + + + 0 + + + 132, 32 + + + 484, 166 + + + 4 + + + CenterScreen + + + System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 10 + + + HVCPage1 + + + 2 + + + 110, 34 + + + 344, 33 + + + WModeControl + + + 1 + + + 停止 + + + HOpenHubert + + + 2 + + + 128, 40 + + + cleanButton + + + 1 + + + 9 + + + VITS配置 + + + System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 128, 28 + + + 1 + + + 符号输入 + + + 100, 24 + + + 4 + + + 7 + + + 501, 124 + + + 0 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 3, 3, 3, 3 + + + 362, 30 + + + System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + True + + + 3 + + + 播放 + + + 4 + + + System.Windows.Forms.ToolStripMenuItem, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 4 + + + 3, 3, 3, 3 + + + tabPage1 + + + 4, 33 + + + modelPanel + + + 14 + + + System.Windows.Forms.TabPage, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 234, 138 + + + 原说话人 + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Windows.Forms.TabPage, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 6 + + + 3, 3, 3, 3 + + + 1 + + + 152, 30 + + + 1 + + + MoeGoe.exe + + + 2 + + + EXEPath + + + $this + + + System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + HModelPanel + + + modeControl + + + $this + + + HuBERT模型 + + + 132, 32 + + + 保存文件 + + + True + + + 17, 17 + + + ja-JP + \ No newline at end of file diff --git a/MoeGoe_GUI/MoeGoe_GUI.csproj b/MoeGoe_GUI/MoeGoe_GUI.csproj index e7898a0..8141524 100644 --- a/MoeGoe_GUI/MoeGoe_GUI.csproj +++ b/MoeGoe_GUI/MoeGoe_GUI.csproj @@ -99,6 +99,9 @@ + + MainWin.cs + SymbolsWin.cs