Skip to content

Commit

Permalink
Feature Update
Browse files Browse the repository at this point in the history
Feature Update
  • Loading branch information
cyberofficial authored Sep 26, 2024
2 parents 36a510f + e22f0f3 commit 59ba03f
Show file tree
Hide file tree
Showing 17 changed files with 287 additions and 80 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ This script uses argparse to accept command line arguments. The following option
| ---- | ----------- |
| `--ram` | Change the amount of RAM to use. Default is 4GB. Choices are "1GB", "2GB", "4GB", "6GB", "12GB". |
| `--ramforce` | Use this flag to force the script to use desired VRAM. May cause the script to crash if there is not enough VRAM available. |
| `--fp16` | This allows for more accurate information being passed to the process. This will grant the AL the ability to process more information at the cost of speed. You will not see heavy impact on stronger hardware. Combine 12gb-v3 + fp16 Flags (Precision Mode on the GUI) for the ultimate experience. |
| `--energy_threshold` | Set the energy level for microphone to detect. Default is 100. Choose from 1 to 1000; anything higher will be harder to trigger the audio detection. |
| `--mic_calibration_time` | How long to calibrate the mic for in seconds. To skip user input type 0 and time will be set to 5 seconds. |
| `--record_timeout` | Set the time in seconds for real-time recording. Default is 2 seconds. |
Expand Down
5 changes: 4 additions & 1 deletion Synthalingua_Wrapper/App.config
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<value>True</value>
</setting>
<setting name="RamSize" serializeAs="String">
<value>1</value>
<value>1gb</value>
</setting>
<setting name="ForceRam" serializeAs="String">
<value>False</value>
Expand Down Expand Up @@ -147,6 +147,9 @@
<setting name="modelDIr" serializeAs="String">
<value />
</setting>
<setting name="fp16" serializeAs="String">
<value>False</value>
</setting>
</Synthalingua_Wrapper.My.MySettings>
</userSettings>
</configuration>
28 changes: 27 additions & 1 deletion Synthalingua_Wrapper/MainUI.Designer.vb

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

15 changes: 12 additions & 3 deletions Synthalingua_Wrapper/MainUI.resx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Microsoft ResX Schema
Version 2.0
Expand Down Expand Up @@ -48,7 +48,7 @@
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
Expand Down Expand Up @@ -121,7 +121,7 @@
<value>What is "id type"? Usually the name to the left of the "="
like "file.m3u8&amp;&amp;key=000000" | In this case, id is "key" and password
is the set of 0. Click the check box first then Paste the full stream
url with key. then idenify the id and key in the text boxes above.
url with key. then identify the id and key in the text boxes above.
This will hide the info for secuirty.</value>
</data>
<metadata name="OpenScriptDiag.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
Expand All @@ -130,6 +130,15 @@ This will hide the info for secuirty.</value>
<metadata name="SaveFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>183, 17</value>
</metadata>
<data name="Label17.Text" xml:space="preserve">
<value>Info:
12GB v2 - More Stable, Much Faster,,
12GB v3 - More Accurate, Tiny bit Slower, Tiny bit more Heavy.

Precision Mode - This will help reduce errors, but will increase
the time it takes. This option is for all models. This allows more
infomation to be put into numbers for the process to handle.</value>
</data>
<metadata name="ToolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>342, 17</value>
</metadata>
Expand Down
12 changes: 10 additions & 2 deletions Synthalingua_Wrapper/MainUI.vb
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,10 @@ Public Class MainUI
ConfigTextBox.Text += "--model_dir """ & modelDIr.Text & """" & " "
End If

If PrecisionCheckBox.Checked Then
ConfigTextBox.Text += "--fp16"
End If

ConfigTextBox.Text += vbNewLine & "pause"

End Sub
Expand Down Expand Up @@ -290,7 +294,7 @@ Public Class MainUI

PortNumber.Value = .WebServerPort
WebServerButton.Checked = .WebServerEnabled
RamSize.Text = .RamSize & "gb"
RamSize.Text = .RamSize
ForceRam.Checked = .ForceRam
CookiesName.Text = .CookieName
StreamLanguage.Text = .StreamLanguage
Expand All @@ -317,6 +321,7 @@ Public Class MainUI
hlspassword.Text = .hlspassword
cb_halspassword.Checked = .cb_halspassword
modelDIr.Text = .modelDIr
PrecisionCheckBox.Checked = .fp16
Try
PrimaryFolder = .PrimaryFolder
Catch ex As Exception
Expand Down Expand Up @@ -505,7 +510,7 @@ Public Class MainUI
.WebServerPort = PortNumber.Value

' RAM Size
.RamSize = RamSize.Text.Replace("gb", "")
.RamSize = RamSize.Text

' Model Location
.modelDIr = modelDIr.Text
Expand Down Expand Up @@ -568,6 +573,9 @@ Public Class MainUI
.hlspassword = hlspassword.Text
.cb_halspassword = cb_halspassword.Checked

'Precision Mode
.fp16 = PrecisionCheckBox.Checked

End With
My.Settings.Save()
End Sub
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project>
<PropertyGroup>
<History>True|2024-09-26T19:09:54.5357885Z||;True|2024-09-18T03:09:20.6489818-04:00||;True|2024-08-08T02:50:46.6107116-04:00||;True|2024-08-08T02:34:00.3980329-04:00||;True|2024-08-08T02:31:56.2576355-04:00||;True|2024-08-08T02:27:59.1611557-04:00||;True|2024-08-08T02:26:48.4386992-04:00||;True|2024-08-08T02:24:08.4320611-04:00||;True|2024-08-08T02:19:01.0250722-04:00||;True|2024-08-08T01:51:56.8183777-04:00||;True|2024-08-08T01:50:23.0868936-04:00||;True|2024-08-08T01:50:10.4543482-04:00||;True|2024-08-08T01:49:59.7945394-04:00||;True|2024-08-08T01:47:41.5885686-04:00||;True|2024-08-08T01:46:26.9076296-04:00||;True|2024-08-08T01:46:06.3593091-04:00||;True|2024-08-08T01:44:52.6974951-04:00||;True|2024-08-08T01:43:33.9183523-04:00||;True|2024-08-08T01:43:11.3344818-04:00||;True|2024-08-08T01:40:22.8767718-04:00||;True|2024-08-08T01:38:27.2167559-04:00||;</History>
<History>True|2024-09-26T22:52:16.8047523Z||;True|2024-09-26T18:45:33.6369257-04:00||;True|2024-09-26T17:43:15.5416964-04:00||;True|2024-09-26T17:13:09.1691137-04:00||;True|2024-09-26T17:08:51.5207150-04:00||;True|2024-09-26T15:09:54.5357885-04:00||;True|2024-09-18T03:09:20.6489818-04:00||;True|2024-08-08T02:50:46.6107116-04:00||;True|2024-08-08T02:34:00.3980329-04:00||;True|2024-08-08T02:31:56.2576355-04:00||;True|2024-08-08T02:27:59.1611557-04:00||;True|2024-08-08T02:26:48.4386992-04:00||;True|2024-08-08T02:24:08.4320611-04:00||;True|2024-08-08T02:19:01.0250722-04:00||;True|2024-08-08T01:51:56.8183777-04:00||;True|2024-08-08T01:50:23.0868936-04:00||;True|2024-08-08T01:50:10.4543482-04:00||;True|2024-08-08T01:49:59.7945394-04:00||;True|2024-08-08T01:47:41.5885686-04:00||;True|2024-08-08T01:46:26.9076296-04:00||;True|2024-08-08T01:46:06.3593091-04:00||;True|2024-08-08T01:44:52.6974951-04:00||;True|2024-08-08T01:43:33.9183523-04:00||;True|2024-08-08T01:43:11.3344818-04:00||;True|2024-08-08T01:40:22.8767718-04:00||;True|2024-08-08T01:38:27.2167559-04:00||;</History>
<LastFailureDetails />
</PropertyGroup>
</Project>
20 changes: 16 additions & 4 deletions Synthalingua_Wrapper/My Project/Settings.Designer.vb

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

7 changes: 5 additions & 2 deletions Synthalingua_Wrapper/My Project/Settings.settings
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
<Setting Name="WebServerEnabled" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">True</Value>
</Setting>
<Setting Name="RamSize" Type="System.Int32" Scope="User">
<Value Profile="(Default)">1</Value>
<Setting Name="RamSize" Type="System.String" Scope="User">
<Value Profile="(Default)">1gb</Value>
</Setting>
<Setting Name="ForceRam" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
Expand Down Expand Up @@ -140,5 +140,8 @@
<Setting Name="modelDIr" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="fp16" Type="System.Boolean" Scope="User">
<Value Profile="(Default)">False</Value>
</Setting>
</Settings>
</SettingsFile>
6 changes: 0 additions & 6 deletions Synthalingua_Wrapper/Synthalingua_Wrapper.sln
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,12 @@ Project("{778DAE3C-4631-46EA-AA77-85C1314464D9}") = "Synthalingua_Wrapper", "Syn
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{CAF88D7C-75DD-495B-9971-BFEB457CFAC5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CAF88D7C-75DD-495B-9971-BFEB457CFAC5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CAF88D7C-75DD-495B-9971-BFEB457CFAC5}.Debug|x64.ActiveCfg = Debug|x64
{CAF88D7C-75DD-495B-9971-BFEB457CFAC5}.Debug|x64.Build.0 = Debug|x64
{CAF88D7C-75DD-495B-9971-BFEB457CFAC5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CAF88D7C-75DD-495B-9971-BFEB457CFAC5}.Release|Any CPU.Build.0 = Release|Any CPU
{CAF88D7C-75DD-495B-9971-BFEB457CFAC5}.Release|x64.ActiveCfg = Release|x64
{CAF88D7C-75DD-495B-9971-BFEB457CFAC5}.Release|x64.Build.0 = Release|x64
EndGlobalSection
Expand Down
8 changes: 4 additions & 4 deletions Synthalingua_Wrapper/Synthalingua_Wrapper.vbproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@
<PackageIcon>syntha.png</PackageIcon>
<ApplicationIcon>assets\syntha.ico</ApplicationIcon>
<AssemblyName>SynthalinguaGUI</AssemblyName>
<Copyright>Build Date: Sep 26 2024 3:07 PM EDT</Copyright>
<Copyright>Build Date: Sep 26 2024 6:50 PM EDT</Copyright>
<FileVersion>4</FileVersion>
<AssemblyVersion>1.1.4.44</AssemblyVersion>
<AssemblyVersion>1.1.4.45</AssemblyVersion>
<Version>1</Version>
<RepositoryUrl>https://github.com/cyberofficial/Synthalingua</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<PlatformTarget>AnyCPU</PlatformTarget>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<PlatformTarget>AnyCPU</PlatformTarget>
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>

<ItemGroup>
Expand Down
18 changes: 11 additions & 7 deletions html_data/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,20 @@ <h2 id="transcribed-header" class="hidden"></h2>
const showTranslation = params.has("showtranslation");
const showTranscription = params.has("showtranscription");

if (showOriginal) {
if (!showOriginal && !showTranslation && !showTranscription) {
showElementById("header-text");
}

if (showTranslation) {
showElementById("translated-header");
}

if (showTranscription) {
showElementById("transcribed-header");
} else {
if (showOriginal) {
showElementById("header-text");
}
if (showTranslation) {
showElementById("translated-header");
}
if (showTranscription) {
showElementById("transcribed-header");
}
}
});
</script>
Expand Down
Loading

0 comments on commit 59ba03f

Please sign in to comment.