HearthSim / HDT-Voice

HDT-Voice is a plugin for Hearthstone Deck Tracker that allows you to control and play the game with voice commands using speech recognition
3 stars 4 forks source link

Plugin Detects Voice Input - Fails to execute command in HS #3

Open ridetheflatline opened 7 years ago

ridetheflatline commented 7 years ago

Plugin detects and displays a notification that Voice Plugin is enabled It plays the 'detected command' sound upon a correct command being spoken But nothing happens in Hearthstone.

Furthermore, If an incorrect command is spoken, it doesn't play the notification sound; so it is correctly interpreting acceptable voice commands.

*using v0.9.1 (550kb)

ridetheflatline commented 7 years ago

Trying to get HDT-Voice plugin to work, I moved the "Recognition Threshold" value to 100%, pushed down the push-to-talk button (left shift), said "brawl" once or twice and crashed HDT.

Error: Exception has been thrown by the target of an invocation. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ObjectDisposedException: Cannot write to a closed TextWriter. at System.IO.__Error.WriterClosed() at System.IO.StreamWriter.Flush(Boolean flushStream, Boolean flushEncoder) at System.IO.StreamWriter.Write(Char[] buffer, Int32 index, Int32 count) at System.IO.TextWriter.WriteLine(String value) at HDTVoice.HDTVoice.writeLog(String LogLine, Object[] args) at HDTVoice.HDTVoice.onSpeechRecognized(Object sender, SpeechRecognizedEventArgs e) at System.Speech.Recognition.SpeechRecognitionEngine.SpeechRecognizedProxy(Object sender, SpeechRecognizedEventArgs e) --- End of inner exception stack trace --- at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Delegate.DynamicInvokeImpl(Object[] args) at System.Speech.Internal.AsyncSerializedWorker.WorkerProc(Object ignored) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Crash report 2412017-144.txt

Nothing exciting appears in the hdtvoicelog.txt either: hdtvoicelog.txt