AcrCloudSdk class
ACRCloudClient is the main class of this SDK. It provides functions of configuration management, automatic audio recording and recognition, manual audio file recognition and so on.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
resultStream
→ Stream<
String> -
Fires whenever a song is recognized
returns data as
String
no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
songModelStream
→ Stream<
SongModel> -
Fires whenever a song is recognized
returns data as
SongModel
objectno setter -
timeStream
→ Stream<
double> -
Fires whenever a song's time is recognized
returns data as
double
no setter
Methods
-
init(
{required String host, required String accessKey, required String accessSecret, String? hostAuto, String? accessKeyAuto, String? accessSecretAuto, int recorderConfigRate = 8000, Duration? requestTimeout, int recorderConfigChannels = 1, bool isVolumeCallback = true, bool setLog = true, ACRCloudRecMode recMode = ACRCloudRecMode.default_mode}) → Future< bool> - You should initilize the AcrCloudSdk instance with this function.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
start(
{bool autoRecognize = false, bool requestRadioMetadata = false}) → Future< bool> - This function will automatic start the recording and recognizing process.
-
stop(
) → Future< bool> - This function will cancel the recognition immediately.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited