startSession static method
Begin recognizing a track.
Returns an ACRCloudSession instance that can be used to control the session.
Implementation
static ACRCloudSession startSession() {
if (!_isSetUp) {
throw StateError(
'ACRCloud is not set up! You forgot to call ACRCloud.setUp()');
}
_session?.dispose();
_session = ACRCloudSession._();
_channel.invokeMethod('listen');
return _session!;
}