From 6a7da88947f7618420a383513b3caf2c9fe541c6 Mon Sep 17 00:00:00 2001 From: Citizen Date: Sun, 7 Apr 2024 19:54:16 +0200 Subject: [PATCH] First Draft of TTS moth SP movemeny is in working order and tested. --- src/AI.TTS.Visual/FormMain.Designer.cs | 17 ++- src/AI.TTS.Visual/FormMain.cs | 48 +++---- src/ActuarialIntelligence.sln | 14 ++ src/BasicTTS/App.config | 6 + src/BasicTTS/BasicTTS.csproj | 83 ++++++++++++ src/BasicTTS/Form1.Designer.cs | 76 +++++++++++ src/BasicTTS/Form1.cs | 110 ++++++++++++++++ src/BasicTTS/Form1.resx | 120 ++++++++++++++++++ src/BasicTTS/Program.cs | 22 ++++ src/BasicTTS/Properties/AssemblyInfo.cs | 36 ++++++ src/BasicTTS/Properties/Resources.Designer.cs | 71 +++++++++++ src/BasicTTS/Properties/Resources.resx | 117 +++++++++++++++++ src/BasicTTS/Properties/Settings.Designer.cs | 30 +++++ src/BasicTTS/Properties/Settings.settings | 7 + src/BasicTTSAi/BasicTTSAi.csproj | 11 ++ src/BasicTTSAi/Form1.Designer.cs | 46 +++++++ src/BasicTTSAi/Form1.cs | 10 ++ src/BasicTTSAi/Form1.resx | 60 +++++++++ src/BasicTTSAi/Program.cs | 17 +++ 19 files changed, 877 insertions(+), 24 deletions(-) create mode 100644 src/BasicTTS/App.config create mode 100644 src/BasicTTS/BasicTTS.csproj create mode 100644 src/BasicTTS/Form1.Designer.cs create mode 100644 src/BasicTTS/Form1.cs create mode 100644 src/BasicTTS/Form1.resx create mode 100644 src/BasicTTS/Program.cs create mode 100644 src/BasicTTS/Properties/AssemblyInfo.cs create mode 100644 src/BasicTTS/Properties/Resources.Designer.cs create mode 100644 src/BasicTTS/Properties/Resources.resx create mode 100644 src/BasicTTS/Properties/Settings.Designer.cs create mode 100644 src/BasicTTS/Properties/Settings.settings create mode 100644 src/BasicTTSAi/BasicTTSAi.csproj create mode 100644 src/BasicTTSAi/Form1.Designer.cs create mode 100644 src/BasicTTSAi/Form1.cs create mode 100644 src/BasicTTSAi/Form1.resx create mode 100644 src/BasicTTSAi/Program.cs diff --git a/src/AI.TTS.Visual/FormMain.Designer.cs b/src/AI.TTS.Visual/FormMain.Designer.cs index 1e7928d..d77baf6 100644 --- a/src/AI.TTS.Visual/FormMain.Designer.cs +++ b/src/AI.TTS.Visual/FormMain.Designer.cs @@ -28,21 +28,36 @@ protected override void Dispose(bool disposing) /// private void InitializeComponent() { + this.pictureBox = new System.Windows.Forms.PictureBox(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox)).BeginInit(); this.SuspendLayout(); // + // pictureBox + // + this.pictureBox.Location = new System.Drawing.Point(86, 76); + this.pictureBox.Name = "pictureBox"; + this.pictureBox.Size = new System.Drawing.Size(1344, 718); + this.pictureBox.TabIndex = 0; + this.pictureBox.TabStop = false; + this.pictureBox.Click += new System.EventHandler(this.pictureBox_Click); + // // FormMain // this.AutoScaleDimensions = new System.Drawing.SizeF(16F, 31F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(800, 450); + this.ClientSize = new System.Drawing.Size(1532, 901); + this.Controls.Add(this.pictureBox); this.Name = "FormMain"; this.Text = "Form1"; this.Load += new System.EventHandler(this.FormMain_Load); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox)).EndInit(); this.ResumeLayout(false); } #endregion + + private System.Windows.Forms.PictureBox pictureBox; } } diff --git a/src/AI.TTS.Visual/FormMain.cs b/src/AI.TTS.Visual/FormMain.cs index 87b1648..2f0ed9a 100644 --- a/src/AI.TTS.Visual/FormMain.cs +++ b/src/AI.TTS.Visual/FormMain.cs @@ -1,13 +1,8 @@ using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; using System.Drawing; using System.IO; using System.Linq; -using System.Text; using System.Threading; -using System.Threading.Tasks; using System.Windows.Forms; using Emgu.CV; using Emgu.CV.Structure; @@ -16,6 +11,7 @@ namespace AI.TTS.Visual { public partial class FormMain : Form { + public FormMain() { InitializeComponent(); @@ -23,19 +19,19 @@ public FormMain() private void FormMain_Load(object sender, EventArgs e) { - string textfilePath = "path/to/your/text/file.txt"; - string outputVideoFilePath = ""; + string textfilePath = @"C:\Users\Rajah\Documents\Test Data\TextScripts\input.txt"; + string outputVideoFilePath = @"C:\Users\Rajah\Documents\Test Data\TextScripts\output.mp4"; double ScaleFactor = 0.3; // Initialize video writer // Start recording images - ImageDisplay imageDisplay = new ImageDisplay(outputVideoFilePath); - VideoWriter writer = imageDisplay.writer; // Sharing the writer, + //ImageDisplay imageDisplay = new ImageDisplay(outputVideoFilePath); + //VideoWriter writer = imageDisplay.writer; // Sharing the writer, - Thread imageDisplayThread = new Thread(imageDisplay.StartRecording); - imageDisplayThread.Start(); + //Thread imageDisplayThread = new Thread(imageDisplay.StartRecording); + //imageDisplayThread.Start(); // Read the text from the file string text = File.ReadAllText(textfilePath); @@ -50,8 +46,9 @@ private void FormMain_Load(object sender, EventArgs e) foreach (char c in word) { // Check if the character is a vowel - WriteImagePerVowel(ScaleFactor, writer, c); - + // WriteImagePerVowel(ScaleFactor, writer, c); + var bitmap = GetMouthImage(c); + this.pictureBox.Image = bitmap; // Adjust the delay to simulate the speed of human speech for characters Thread.Sleep(100); } @@ -60,11 +57,11 @@ private void FormMain_Load(object sender, EventArgs e) } // Stop recording images - imageDisplay.StopRecording(); - imageDisplayThread.Join(); + //imageDisplay.StopRecording(); + //imageDisplayThread.Join(); // Release the video writer - writer.Dispose(); + // writer.Dispose(); } private static void WriteImagePerVowel(double ScaleFactor, VideoWriter writer, char c) @@ -81,7 +78,7 @@ private static void WriteImagePerVowel(double ScaleFactor, VideoWriter writer, c g.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.HighQualityBicubic; g.DrawImage(mouthImage, 0, 0, scaledMouthImage.Width, scaledMouthImage.Height); } - + // Convert the Bitmap to Image Image emguImage = ImageDisplay.EmguImageFromBitmap(scaledMouthImage); @@ -97,24 +94,29 @@ static Bitmap GetMouthImage(char vowel) { case 'A': case 'a': - return new Bitmap("mouth_a.bmp"); + return new Bitmap(@"C:\Users\Rajah\Pictures\SpMouths\A.png"); case 'E': case 'e': - return new Bitmap("mouth_e.bmp"); + return new Bitmap(@"C:\Users\Rajah\Pictures\SpMouths\E.png"); case 'I': case 'i': - return new Bitmap("mouth_i.bmp"); + return new Bitmap(@"C:\Users\Rajah\Pictures\SpMouths\I.png"); case 'O': case 'o': - return new Bitmap("mouth_o.bmp"); + return new Bitmap(@"C:\Users\Rajah\Pictures\SpMouths\O.png"); case 'U': case 'u': - return new Bitmap("mouth_u.bmp"); + return new Bitmap(@"C:\Users\Rajah\Pictures\SpMouths\U.png"); case ' ': - return new Bitmap("partialOpenMouth.bmp"); + return new Bitmap(@"C:\Users\Rajah\Pictures\SpMouths\L.png"); default: return null; } } + + private void pictureBox_Click(object sender, EventArgs e) + { + + } } } diff --git a/src/ActuarialIntelligence.sln b/src/ActuarialIntelligence.sln index f2e8b2a..c7a44e6 100644 --- a/src/ActuarialIntelligence.sln +++ b/src/ActuarialIntelligence.sln @@ -77,6 +77,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AI.TTS.EXE", "AI.TTS.EXE\AI EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AI.TTS.Visual", "AI.TTS.Visual\AI.TTS.Visual.csproj", "{26F4EDC1-05BA-41FE-BE71-71DB0E3C5C8D}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BasicTTSAi", "BasicTTSAi\BasicTTSAi.csproj", "{34AD0CD5-C5D9-43B5-8290-C331434A343A}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BasicTTS", "BasicTTS\BasicTTS.csproj", "{585E5FD4-CA9B-435E-9A8F-A5F6B2F5E144}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -177,6 +181,14 @@ Global {26F4EDC1-05BA-41FE-BE71-71DB0E3C5C8D}.Debug|Any CPU.Build.0 = Debug|Any CPU {26F4EDC1-05BA-41FE-BE71-71DB0E3C5C8D}.Release|Any CPU.ActiveCfg = Release|Any CPU {26F4EDC1-05BA-41FE-BE71-71DB0E3C5C8D}.Release|Any CPU.Build.0 = Release|Any CPU + {34AD0CD5-C5D9-43B5-8290-C331434A343A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {34AD0CD5-C5D9-43B5-8290-C331434A343A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {34AD0CD5-C5D9-43B5-8290-C331434A343A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {34AD0CD5-C5D9-43B5-8290-C331434A343A}.Release|Any CPU.Build.0 = Release|Any CPU + {585E5FD4-CA9B-435E-9A8F-A5F6B2F5E144}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {585E5FD4-CA9B-435E-9A8F-A5F6B2F5E144}.Debug|Any CPU.Build.0 = Debug|Any CPU + {585E5FD4-CA9B-435E-9A8F-A5F6B2F5E144}.Release|Any CPU.ActiveCfg = Release|Any CPU + {585E5FD4-CA9B-435E-9A8F-A5F6B2F5E144}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -204,6 +216,8 @@ Global {BE18A29D-C80F-4C25-8D2A-59E1418F94E1} = {233764A4-5B6D-4144-A01C-092A136279FF} {4F55C07A-6F34-4E59-96DF-7BDAE49804FE} = {846214C2-E1CC-4C1E-8F09-86BB5582072B} {26F4EDC1-05BA-41FE-BE71-71DB0E3C5C8D} = {846214C2-E1CC-4C1E-8F09-86BB5582072B} + {34AD0CD5-C5D9-43B5-8290-C331434A343A} = {846214C2-E1CC-4C1E-8F09-86BB5582072B} + {585E5FD4-CA9B-435E-9A8F-A5F6B2F5E144} = {846214C2-E1CC-4C1E-8F09-86BB5582072B} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {7AFF1FB0-27A8-4765-900D-F53F52605824} diff --git a/src/BasicTTS/App.config b/src/BasicTTS/App.config new file mode 100644 index 0000000..193aecc --- /dev/null +++ b/src/BasicTTS/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/BasicTTS/BasicTTS.csproj b/src/BasicTTS/BasicTTS.csproj new file mode 100644 index 0000000..99b5904 --- /dev/null +++ b/src/BasicTTS/BasicTTS.csproj @@ -0,0 +1,83 @@ + + + + + Debug + AnyCPU + {585E5FD4-CA9B-435E-9A8F-A5F6B2F5E144} + WinExe + BasicTTS + BasicTTS + v4.8 + 512 + true + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + Form + + + Form1.cs + + + + + Form1.cs + + + ResXFileCodeGenerator + Resources.Designer.cs + Designer + + + True + Resources.resx + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + True + Settings.settings + True + + + + + + + \ No newline at end of file diff --git a/src/BasicTTS/Form1.Designer.cs b/src/BasicTTS/Form1.Designer.cs new file mode 100644 index 0000000..caf326a --- /dev/null +++ b/src/BasicTTS/Form1.Designer.cs @@ -0,0 +1,76 @@ +namespace BasicTTS +{ + partial class FormMain + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.pictureBox = new System.Windows.Forms.PictureBox(); + this.button1 = new System.Windows.Forms.Button(); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox)).BeginInit(); + this.SuspendLayout(); + // + // pictureBox + // + this.pictureBox.Location = new System.Drawing.Point(64, 46); + this.pictureBox.Name = "pictureBox"; + this.pictureBox.Size = new System.Drawing.Size(1606, 839); + this.pictureBox.TabIndex = 0; + this.pictureBox.TabStop = false; + this.pictureBox.Click += new System.EventHandler(this.pictureBox_Click); + // + // button1 + // + this.button1.Location = new System.Drawing.Point(1658, 17); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(75, 23); + this.button1.TabIndex = 1; + this.button1.Text = "button1"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // + // FormMain + // + this.AutoScaleDimensions = new System.Drawing.SizeF(16F, 31F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1726, 945); + this.Controls.Add(this.button1); + this.Controls.Add(this.pictureBox); + this.Name = "FormMain"; + this.Text = "Form1"; + this.Load += new System.EventHandler(this.FormMain_Load); + ((System.ComponentModel.ISupportInitialize)(this.pictureBox)).EndInit(); + this.ResumeLayout(false); + + } + + #endregion + + private System.Windows.Forms.PictureBox pictureBox; + private System.Windows.Forms.Button button1; + } +} + diff --git a/src/BasicTTS/Form1.cs b/src/BasicTTS/Form1.cs new file mode 100644 index 0000000..496a71d --- /dev/null +++ b/src/BasicTTS/Form1.cs @@ -0,0 +1,110 @@ +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.IO; +using System.Linq; +using System.Text; +using System.Threading; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace BasicTTS +{ + public partial class FormMain : Form + { + public FormMain() + { + InitializeComponent(); + } + + private void pictureBox_Click(object sender, EventArgs e) + { + + } + + private void FormMain_Load(object sender, EventArgs e) + { + + } + + + + // Method to get the mouth image for a vowel + static Bitmap GetMouthImage(char vowel) + { + switch (vowel) + { + case 'A': + case 'a': + return new Bitmap(@"C:\Users\Rajah\Pictures\SpMouths\A.png"); + case 'E': + case 'e': + return new Bitmap(@"C:\Users\Rajah\Pictures\SpMouths\E.png"); + case 'I': + case 'i': + return new Bitmap(@"C:\Users\Rajah\Pictures\SpMouths\I.png"); + case 'O': + case 'o': + return new Bitmap(@"C:\Users\Rajah\Pictures\SpMouths\O.png"); + case 'U': + case 'u': + return new Bitmap(@"C:\Users\Rajah\Pictures\SpMouths\U.png"); + case ' ': + return new Bitmap(@"C:\Users\Rajah\Pictures\SpMouths\L.png"); + default: + return new Bitmap(@"C:\Users\Rajah\Pictures\SpMouths\L.png"); ; + } + } + + private void button1_Click(object sender, EventArgs e) + { + string textfilePath = @"C:\Users\Rajah\Documents\Test Data\TextScripts\input.txt"; + string outputVideoFilePath = @"C:\Users\Rajah\Documents\Test Data\TextScripts\output.mp4"; + + double ScaleFactor = 0.3; + var tmr = new System.Windows.Forms.Timer(); + + // Initialize video writer + + // Start recording images + //ImageDisplay imageDisplay = new ImageDisplay(outputVideoFilePath); + //VideoWriter writer = imageDisplay.writer; // Sharing the writer, + + //Thread imageDisplayThread = new Thread(imageDisplay.StartRecording); + //imageDisplayThread.Start(); + + // Read the text from the file + string text = File.ReadAllText(textfilePath); + + // Split the text into words + string[] words = text.Split(new char[] { ' ', ' ', ' ', ' ' }, StringSplitOptions.RemoveEmptyEntries); + + // Iterate through each word + foreach (string word in words) + { + // Iterate through each character in the word + foreach (char c in word) + { + // Check if the character is a vowel + // WriteImagePerVowel(ScaleFactor, writer, c); + var bitmap = GetMouthImage(c); + this.pictureBox.Image = bitmap; + this.pictureBox.Refresh(); + // Adjust the delay to simulate the speed of human speech for characters + Thread.Sleep(50); + } + // Adjust the delay to simulate the speed of human speech for words + Thread.Sleep(300); // Adjust this delay to simulate human speaking speed for words + } + + // Stop recording images + //imageDisplay.StopRecording(); + //imageDisplayThread.Join(); + + // Release the video writer + // writer.Dispose(); + } + } +} diff --git a/src/BasicTTS/Form1.resx b/src/BasicTTS/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/src/BasicTTS/Form1.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + \ No newline at end of file diff --git a/src/BasicTTS/Program.cs b/src/BasicTTS/Program.cs new file mode 100644 index 0000000..2897b11 --- /dev/null +++ b/src/BasicTTS/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace BasicTTS +{ + internal static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + Application.EnableVisualStyles(); + Application.SetCompatibleTextRenderingDefault(false); + Application.Run(new FormMain()); + } + } +} diff --git a/src/BasicTTS/Properties/AssemblyInfo.cs b/src/BasicTTS/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..e928bb2 --- /dev/null +++ b/src/BasicTTS/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("BasicTTS")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("BasicTTS")] +[assembly: AssemblyCopyright("Copyright © 2024")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("585e5fd4-ca9b-435e-9a8f-a5f6b2f5e144")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/src/BasicTTS/Properties/Resources.Designer.cs b/src/BasicTTS/Properties/Resources.Designer.cs new file mode 100644 index 0000000..bd809a9 --- /dev/null +++ b/src/BasicTTS/Properties/Resources.Designer.cs @@ -0,0 +1,71 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace BasicTTS.Properties +{ + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class Resources + { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() + { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager + { + get + { + if ((resourceMan == null)) + { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("BasicTTS.Properties.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture + { + get + { + return resourceCulture; + } + set + { + resourceCulture = value; + } + } + } +} diff --git a/src/BasicTTS/Properties/Resources.resx b/src/BasicTTS/Properties/Resources.resx new file mode 100644 index 0000000..af7dbeb --- /dev/null +++ b/src/BasicTTS/Properties/Resources.resx @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/src/BasicTTS/Properties/Settings.Designer.cs b/src/BasicTTS/Properties/Settings.Designer.cs new file mode 100644 index 0000000..1c5bb55 --- /dev/null +++ b/src/BasicTTS/Properties/Settings.Designer.cs @@ -0,0 +1,30 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace BasicTTS.Properties +{ + + + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase + { + + private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); + + public static Settings Default + { + get + { + return defaultInstance; + } + } + } +} diff --git a/src/BasicTTS/Properties/Settings.settings b/src/BasicTTS/Properties/Settings.settings new file mode 100644 index 0000000..3964565 --- /dev/null +++ b/src/BasicTTS/Properties/Settings.settings @@ -0,0 +1,7 @@ + + + + + + + diff --git a/src/BasicTTSAi/BasicTTSAi.csproj b/src/BasicTTSAi/BasicTTSAi.csproj new file mode 100644 index 0000000..b57c89e --- /dev/null +++ b/src/BasicTTSAi/BasicTTSAi.csproj @@ -0,0 +1,11 @@ + + + + WinExe + net6.0-windows + enable + true + enable + + + \ No newline at end of file diff --git a/src/BasicTTSAi/Form1.Designer.cs b/src/BasicTTSAi/Form1.Designer.cs new file mode 100644 index 0000000..afeb58b --- /dev/null +++ b/src/BasicTTSAi/Form1.Designer.cs @@ -0,0 +1,46 @@ +namespace BasicTTSAi +{ + partial class Form1 + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.SuspendLayout(); + // + // Form1 + // + this.AutoScaleDimensions = new System.Drawing.SizeF(17F, 41F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.ClientSize = new System.Drawing.Size(1720, 1055); + this.Name = "Form1"; + this.Text = "Form1"; + this.ResumeLayout(false); + + } + + #endregion + } +} \ No newline at end of file diff --git a/src/BasicTTSAi/Form1.cs b/src/BasicTTSAi/Form1.cs new file mode 100644 index 0000000..a49c3a4 --- /dev/null +++ b/src/BasicTTSAi/Form1.cs @@ -0,0 +1,10 @@ +namespace BasicTTSAi +{ + public partial class Form1 : Form + { + public Form1() + { + InitializeComponent(); + } + } +} \ No newline at end of file diff --git a/src/BasicTTSAi/Form1.resx b/src/BasicTTSAi/Form1.resx new file mode 100644 index 0000000..f298a7b --- /dev/null +++ b/src/BasicTTSAi/Form1.resx @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 + + \ No newline at end of file diff --git a/src/BasicTTSAi/Program.cs b/src/BasicTTSAi/Program.cs new file mode 100644 index 0000000..d217714 --- /dev/null +++ b/src/BasicTTSAi/Program.cs @@ -0,0 +1,17 @@ +namespace BasicTTSAi +{ + internal static class Program + { + /// + /// The main entry point for the application. + /// + [STAThread] + static void Main() + { + // To customize application configuration such as set high DPI settings or default font, + // see https://aka.ms/applicationconfiguration. + ApplicationConfiguration.Initialize(); + Application.Run(new Form1()); + } + } +} \ No newline at end of file