-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added support for browser proxy, add word global cooldown
- Loading branch information
Showing
45 changed files
with
1,090 additions
and
381 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,6 @@ public enum BrowserProxyType | |
{ | ||
Chrome, | ||
Edge, | ||
Opera, | ||
Firefox, | ||
//Opera, | ||
//Firefox, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 0 additions & 20 deletions
20
OpenShock.VoiceRecognizer.Configuration/AudioConfigurationState.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
OpenShock.VoiceRecognizer.Configuration/GeneralConfigurationState.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using OpenShock.VoiceRecognizer.Common; | ||
using OpenShock.VoiceRecognizer.Common.Audio; | ||
using OpenShock.VoiceRecognizer.Common.Enums; | ||
|
||
namespace OpenShock.VoiceRecognizer.Configuration; | ||
|
||
public class GeneralConfigurationState | ||
{ | ||
public ReactiveObject<RecognizerType> Recognizer { get; private set; } | ||
public ReactiveObject<ShockCollarType> CollarType { get; private set; } | ||
public ReactiveObject<string> InputDeviceID { get; private set; } | ||
|
||
public GeneralConfigurationState() | ||
{ | ||
Recognizer = new(RecognizerType.Vosk); | ||
CollarType = new(ShockCollarType.OpenShock); | ||
InputDeviceID = new(string.Empty); | ||
} | ||
|
||
public void LoadFileConfiguration(ConfigurationFileFormat configurationFileFormat) | ||
{ | ||
Recognizer.Value = configurationFileFormat.RecognizerType; | ||
CollarType.Value = configurationFileFormat.CollarType; | ||
InputDeviceID.Value = configurationFileFormat.InputDeviceID; | ||
} | ||
|
||
public void LoadDefaultConfiguration() | ||
{ | ||
CollarType.Value = ShockCollarType.OpenShock; | ||
InputDeviceID.Value = AudioDevices.GetInputAudioDevices().First().ID; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.