Skip to content

Commit

Permalink
修改合成模块
Browse files Browse the repository at this point in the history
  • Loading branch information
hontsev committed Nov 2, 2017
1 parent df67df6 commit 29f5e43
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 7 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,4 @@
/歌姬朗读文件生成v1.2.rar
/袅袅朗读文件生成v1.11.rar
/niaoniaofile/bin/Debug/tmp_talking
/niaoniaofile/bin/Debug
/niaoniaofile/bin/Release
40 changes: 38 additions & 2 deletions niaoniaofile/Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions niaoniaofile/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -627,11 +627,13 @@ private bool initMYSS()
{
int speed = int.Parse(numericUpDown5.Value.ToString());
int height = int.Parse(numericUpDown6.Value.ToString());
int pitch = int.Parse(numericUpDown7.Value.ToString());
string filepath = textBox5.Text + @"\";
if (myssc == null || myssc.filepath != filepath)
this.myssc = new MYSSController(filepath);
myssc.soundheight = height;
myssc.soundSpeed = speed;
myssc.defaultpitch = pitch;
}
catch
{
Expand Down
2 changes: 1 addition & 1 deletion niaoniaofile/MYSSController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class MYSSController
string output = @"output\tmp.wav";
string outputOri = @"output\tmp_origin.wav";
string outputTone = @"output\tmp_tone.wav";
double defaultpitch = 69;
public double defaultpitch = 69;

public MYSSController(string sourcePath)
{
Expand Down
6 changes: 3 additions & 3 deletions niaoniaofile/SpeechSynthesizer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>D:\Program Files\Microsoft SDKs\Speech\v11.0\Assembly\Microsoft.Speech.dll</HintPath>
</Reference>
<Reference Include="mySpeechSynthesizer">
<HintPath>..\..\nntest\mySpeechSynthesizer\bin\Debug\mySpeechSynthesizer.dll</HintPath>
<Private>True</Private>
<Reference Include="mySpeechSynthesizer, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\SpeechSynthesizer\mySpeechSynthesizer\bin\Debug\mySpeechSynthesizer.dll</HintPath>
</Reference>
<Reference Include="Newtonsoft.Json, Version=4.5.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
Expand Down

0 comments on commit 29f5e43

Please sign in to comment.