Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
VRCWizard authored Jul 27, 2024
1 parent c71e108 commit 12381ff
Show file tree
Hide file tree
Showing 6 changed files with 52 additions and 40 deletions.
2 changes: 1 addition & 1 deletion OSCVRCWiz/Resources/StartUp/Updater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace OSCVRCWiz.Resources.StartUp
public class Updater
{

public static string currentVersion = "1.6.9.6";
public static string currentVersion = "1.6.9.8";
public static string updateXMLName = "https://github.com/VRCWizard/TTS-Voice-Wizard/releases/latest/download/AutoUpdater-x64.xml";

public static async void getGithubInfo()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ private static async void doHeartrateTimerTick()
var message3 = new CoreOSC.OscMessage("/avatar/parameters/hundredsHR", hundreds);
OSC.OSCSender.Send(message3);

float HRPercent = (float)currentHR / 256;
float HRPercent = (float)currentHR / 255;
var message4 = new CoreOSC.OscMessage("/avatar/parameters/HRPercent", (float)HRPercent);
OSC.OSCSender.Send(message4);

Expand Down
1 change: 1 addition & 0 deletions OSCVRCWiz/Services/Integrations/Media/SpotifyAddon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,7 @@ public static async Task windowsMediaGetSongInfo()
theString = theString.Replace("{counter4}", VRChatListener.counter4.ToString());
theString = theString.Replace("{counter5}", VRChatListener.counter5.ToString());
theString = theString.Replace("{counter6}", VRChatListener.counter6.ToString());
theString = theString.Replace("{lyrics}", OSCListener.spotifyLyrics);

theString = replaceProgresBar(theString, progressT, durationT);
theString = replaceHREmoji(theString, Int16.Parse(OSCListener.globalBPM));
Expand Down
15 changes: 13 additions & 2 deletions OSCVRCWiz/Services/Integrations/ToastNotification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,19 @@ private static async void LoopListener()
}
catch (Exception ex)
{
OutputText.outputLog("[Discord Toast Error (Stopping): " + ex.Message + "]", Color.Red);
OutputText.outputLog("[Discord toast feature does not work on x86: " + ex.Message + "]", Color.Orange);

var errorMsg = ex.Message + "\n" + ex.TargetSite + "\n\nStack Trace:\n" + ex.StackTrace;

try
{
errorMsg += "\n\n" + ex.InnerException.Message + "\n" + ex.InnerException.TargetSite + "\n\nStack Trace:\n" + ex.InnerException.StackTrace;

}
catch { }
OutputText.outputLog("Discord Toast Error (Stopping): " + errorMsg, Color.Red);
OutputText.outputLog("[Please note that the Discord toast feature does not work on x86 versions]", Color.Orange);


}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public static void CallElevenVoices()
//modified from https://github.com/connorbutler44/bingbot/blob/main/Service/ElevenLabsTextToSpeechService.cs


var url = $"https://api.elevenlabs.io/v1/voices";
var url = $"https://api.elevenlabs.io/v1/voices?show_legacy=true";
var apiKey = Settings1.Default.elevenLabsAPIKey;


Expand Down
70 changes: 35 additions & 35 deletions OSCVRCWiz/VoiceWizardWindow.Designer.cs

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

0 comments on commit 12381ff

Please sign in to comment.