Closed YuxuanShah closed 2 years ago
Hi I just renewed the Mic Stream example and it looks like the error is not occurring.
Feel free to reopen this issue if you have any further questions
I/AudioRecord(18421): start(5206): return status 0
E/flutter (18421): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: FormatException: Unexpected end of input (at character 1)
E/flutter (18421):
E/flutter (18421): ^
E/flutter (18421):
E/flutter (18421): #0 _ChunkedJsonParser.fail (dart:convert-patch/convert_patch.dart:1383:5)
E/flutter (18421): #1 _ChunkedJsonParser.close (dart:convert-patch/convert_patch.dart:501:7)
E/flutter (18421): #2 _parseJson (dart:convert-patch/convert_patch.dart:36:10)
E/flutter (18421): #3 JsonDecoder.convert (dart:convert/json.dart:610:36)
E/flutter (18421): #4 JsonCodec.decode (dart:convert/json.dart:216:41)
E/flutter (18421): #5 jsonDecode (dart:convert/json.dart:155:10)
E/flutter (18421): #6 new ServiceAccountAuthenticator (package:grpc/src/auth/authio.dart:30:11)
E/flutter (18421): #7 new ServiceAccount. (package:google_speech/speech_client_authenticator.dart:35:26)
E/flutter (18421): #8 new ServiceAccount.fromString (package:google_speech/speech_client_authenticator.dart:73:27)
E/flutter (18421): #9 _AudioRecognizeState.streamingRecognize (package:untitled4/main.dart:64:43)
E/flutter (18421):
I have this problem when using the microphone to stream Below is my code