240 lines
7.9 KiB
C#
240 lines
7.9 KiB
C#
#nullable enable
|
|
namespace Robovoice.App;
|
|
|
|
partial class MainForm
|
|
{
|
|
private System.ComponentModel.IContainer? components = null;
|
|
|
|
private Label lblPttKey = null!;
|
|
private TextBox txtPttKey = null!;
|
|
private Label lblVoice = null!;
|
|
private ComboBox cmbVoice = null!;
|
|
private Button btnManageVoices = null!;
|
|
private Label lblOutput = null!;
|
|
private ComboBox cmbOutput = null!;
|
|
private Label lblServer = null!;
|
|
private TextBox txtSttEndpoint = null!;
|
|
private Button btnLock = null!;
|
|
private RichTextBox txtLog = null!;
|
|
private CheckBox chkMinimizeToTray = null!;
|
|
private Button btnClearLog = null!;
|
|
private Label lblNoise = null!;
|
|
private TrackBar trkNoise = null!;
|
|
private Label lblNoiseVal = null!;
|
|
private Label lblSpeed = null!;
|
|
private TrackBar trkSpeed = null!;
|
|
private Label lblSpeedVal = null!;
|
|
private Label lblNoiseW = null!;
|
|
private TrackBar trkNoiseW = null!;
|
|
private Label lblNoiseWVal = null!;
|
|
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
if (disposing && components != null)
|
|
components.Dispose();
|
|
base.Dispose(disposing);
|
|
}
|
|
|
|
private void InitializeComponent()
|
|
{
|
|
components = new System.ComponentModel.Container();
|
|
|
|
lblPttKey = new Label();
|
|
txtPttKey = new TextBox();
|
|
lblVoice = new Label();
|
|
cmbVoice = new ComboBox();
|
|
btnManageVoices = new Button();
|
|
lblOutput = new Label();
|
|
cmbOutput = new ComboBox();
|
|
lblServer = new Label();
|
|
txtSttEndpoint = new TextBox();
|
|
btnLock = new Button();
|
|
txtLog = new RichTextBox();
|
|
chkMinimizeToTray = new CheckBox();
|
|
btnClearLog = new Button();
|
|
lblNoise = new Label();
|
|
trkNoise = new TrackBar();
|
|
lblNoiseVal = new Label();
|
|
lblSpeed = new Label();
|
|
trkSpeed = new TrackBar();
|
|
lblSpeedVal = new Label();
|
|
lblNoiseW = new Label();
|
|
trkNoiseW = new TrackBar();
|
|
lblNoiseWVal = new Label();
|
|
|
|
SuspendLayout();
|
|
|
|
// lblPttKey
|
|
lblPttKey.Text = "PTT Key:";
|
|
lblPttKey.Location = new Point(12, 15);
|
|
lblPttKey.Size = new Size(60, 23);
|
|
lblPttKey.TextAlign = ContentAlignment.MiddleLeft;
|
|
|
|
// txtPttKey
|
|
txtPttKey.Location = new Point(75, 12);
|
|
txtPttKey.Size = new Size(80, 23);
|
|
txtPttKey.ReadOnly = true;
|
|
txtPttKey.TextAlign = HorizontalAlignment.Center;
|
|
txtPttKey.TabStop = false;
|
|
|
|
// lblVoice
|
|
lblVoice.Text = "Voice:";
|
|
lblVoice.Location = new Point(170, 15);
|
|
lblVoice.Size = new Size(45, 23);
|
|
lblVoice.TextAlign = ContentAlignment.MiddleLeft;
|
|
|
|
// cmbVoice
|
|
cmbVoice.Location = new Point(218, 12);
|
|
cmbVoice.Size = new Size(200, 23);
|
|
cmbVoice.DropDownStyle = ComboBoxStyle.DropDownList;
|
|
|
|
// btnManageVoices
|
|
btnManageVoices.Text = "Add/Remove...";
|
|
btnManageVoices.Location = new Point(423, 11);
|
|
btnManageVoices.Size = new Size(95, 25);
|
|
btnManageVoices.UseVisualStyleBackColor = true;
|
|
|
|
// lblOutput
|
|
lblOutput.Text = "Output:";
|
|
lblOutput.Location = new Point(530, 15);
|
|
lblOutput.Size = new Size(50, 23);
|
|
lblOutput.TextAlign = ContentAlignment.MiddleLeft;
|
|
|
|
// cmbOutput
|
|
cmbOutput.Location = new Point(583, 12);
|
|
cmbOutput.Size = new Size(150, 23);
|
|
cmbOutput.DropDownStyle = ComboBoxStyle.DropDownList;
|
|
|
|
// lblServer
|
|
lblServer.Text = "STT:";
|
|
lblServer.Location = new Point(12, 48);
|
|
lblServer.Size = new Size(35, 23);
|
|
lblServer.TextAlign = ContentAlignment.MiddleLeft;
|
|
|
|
// txtSttEndpoint
|
|
txtSttEndpoint.Location = new Point(50, 45);
|
|
txtSttEndpoint.Size = new Size(200, 23);
|
|
|
|
// btnLock
|
|
btnLock.Text = "Lock Model";
|
|
btnLock.Location = new Point(260, 44);
|
|
btnLock.Size = new Size(90, 25);
|
|
btnLock.UseVisualStyleBackColor = true;
|
|
|
|
// lblNoise
|
|
lblNoise.Text = "Noise:";
|
|
lblNoise.Location = new Point(12, 82);
|
|
lblNoise.Size = new Size(40, 23);
|
|
lblNoise.TextAlign = ContentAlignment.MiddleLeft;
|
|
|
|
// trkNoise
|
|
trkNoise.Location = new Point(52, 78);
|
|
trkNoise.Size = new Size(120, 45);
|
|
trkNoise.Minimum = 0;
|
|
trkNoise.Maximum = 1000;
|
|
trkNoise.Value = 667;
|
|
trkNoise.TickFrequency = 200;
|
|
trkNoise.Orientation = Orientation.Horizontal;
|
|
|
|
// lblNoiseVal
|
|
lblNoiseVal.Text = "0.667";
|
|
lblNoiseVal.Location = new Point(175, 82);
|
|
lblNoiseVal.Size = new Size(35, 23);
|
|
lblNoiseVal.TextAlign = ContentAlignment.MiddleLeft;
|
|
|
|
// lblSpeed
|
|
lblSpeed.Text = "Speed:";
|
|
lblSpeed.Location = new Point(220, 82);
|
|
lblSpeed.Size = new Size(40, 23);
|
|
lblSpeed.TextAlign = ContentAlignment.MiddleLeft;
|
|
|
|
// trkSpeed
|
|
trkSpeed.Location = new Point(260, 78);
|
|
trkSpeed.Size = new Size(120, 45);
|
|
trkSpeed.Minimum = 50;
|
|
trkSpeed.Maximum = 300;
|
|
trkSpeed.Value = 100;
|
|
trkSpeed.TickFrequency = 50;
|
|
trkSpeed.Orientation = Orientation.Horizontal;
|
|
|
|
// lblSpeedVal
|
|
lblSpeedVal.Text = "1.00";
|
|
lblSpeedVal.Location = new Point(383, 82);
|
|
lblSpeedVal.Size = new Size(35, 23);
|
|
lblSpeedVal.TextAlign = ContentAlignment.MiddleLeft;
|
|
|
|
// lblNoiseW
|
|
lblNoiseW.Text = "NoiseW:";
|
|
lblNoiseW.Location = new Point(428, 82);
|
|
lblNoiseW.Size = new Size(45, 23);
|
|
lblNoiseW.TextAlign = ContentAlignment.MiddleLeft;
|
|
|
|
// trkNoiseW
|
|
trkNoiseW.Location = new Point(475, 78);
|
|
trkNoiseW.Size = new Size(120, 45);
|
|
trkNoiseW.Minimum = 0;
|
|
trkNoiseW.Maximum = 1000;
|
|
trkNoiseW.Value = 800;
|
|
trkNoiseW.TickFrequency = 200;
|
|
trkNoiseW.Orientation = Orientation.Horizontal;
|
|
|
|
// lblNoiseWVal
|
|
lblNoiseWVal.Text = "0.800";
|
|
lblNoiseWVal.Location = new Point(598, 82);
|
|
lblNoiseWVal.Size = new Size(45, 23);
|
|
lblNoiseWVal.TextAlign = ContentAlignment.MiddleLeft;
|
|
|
|
// txtLog
|
|
txtLog.Location = new Point(12, 121);
|
|
txtLog.Size = new Size(800, 338);
|
|
txtLog.ReadOnly = true;
|
|
txtLog.Font = new Font("Consolas", 9F);
|
|
txtLog.BackColor = Color.FromArgb(30, 30, 30);
|
|
txtLog.ForeColor = Color.FromArgb(220, 220, 220);
|
|
|
|
// chkMinimizeToTray
|
|
chkMinimizeToTray.Text = "Minimize to tray on close";
|
|
chkMinimizeToTray.Location = new Point(12, 477);
|
|
chkMinimizeToTray.Size = new Size(180, 24);
|
|
chkMinimizeToTray.UseVisualStyleBackColor = true;
|
|
|
|
// btnClearLog
|
|
btnClearLog.Text = "Clear Log";
|
|
btnClearLog.Location = new Point(737, 475);
|
|
btnClearLog.Size = new Size(75, 25);
|
|
btnClearLog.UseVisualStyleBackColor = true;
|
|
|
|
// MainForm
|
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
ClientSize = new Size(824, 509);
|
|
Controls.Add(lblPttKey);
|
|
Controls.Add(txtPttKey);
|
|
Controls.Add(lblVoice);
|
|
Controls.Add(cmbVoice);
|
|
Controls.Add(btnManageVoices);
|
|
Controls.Add(lblOutput);
|
|
Controls.Add(cmbOutput);
|
|
Controls.Add(lblServer);
|
|
Controls.Add(txtSttEndpoint);
|
|
Controls.Add(btnLock);
|
|
Controls.Add(lblNoise);
|
|
Controls.Add(trkNoise);
|
|
Controls.Add(lblNoiseVal);
|
|
Controls.Add(lblSpeed);
|
|
Controls.Add(trkSpeed);
|
|
Controls.Add(lblSpeedVal);
|
|
Controls.Add(lblNoiseW);
|
|
Controls.Add(trkNoiseW);
|
|
Controls.Add(lblNoiseWVal);
|
|
Controls.Add(txtLog);
|
|
Controls.Add(chkMinimizeToTray);
|
|
Controls.Add(btnClearLog);
|
|
MinimumSize = new Size(840, 547);
|
|
Text = "Robovoice";
|
|
FormBorderStyle = FormBorderStyle.FixedSingle;
|
|
MaximizeBox = false;
|
|
ResumeLayout(false);
|
|
}
|
|
}
|