Skip to content

Commit 97f11b2

Browse files
committed
VR - Override blank Speech client to ignore with "Speech".
1 parent 6e46952 commit 97f11b2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

UI/VR2/MainWindow.xaml.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ private void Window_Loaded(object sender, RoutedEventArgs e)
8181
AddToLog("-- Samples Per Second: " + oRecognizer.AudioFormat.SamplesPerSecond);
8282
AddToLog("-- Average Bytes Per Second: " + oRecognizer.AudioFormat.AverageBytesPerSecond);
8383
gSpeechPlugin = OSAEObjectPropertyManager.GetObjectPropertyValue(gAppName, "Can Hear this Plugin").Value.ToString();
84+
if (gSpeechPlugin == "")
85+
{
86+
gSpeechPlugin = "Speech";
87+
OSAEObjectPropertyManager.ObjectPropertySet(gAppName, "Can Hear this Plugin", "Speech","VR Client");
88+
}
8489
AddToLog("-- I will ignore speech from: " + gSpeechPlugin);
8590
Thread t1 = new Thread(delegate()
8691
{

0 commit comments

Comments
 (0)