VaisSpeechAudio class

Constructors

VaisSpeechAudio(String? _token, String grpcAddress, int port)

Properties

channelWS ↔ WebSocketChannel?
getter/setter pair
grpcAddress String
final
hashCode int
The hash code for this object.
no setterinherited
isOfflineMode bool
no setter
port int
getter/setter pair
recording Recording?
no setter
recordMode RecordMode?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addListener(VaisSpeechCallback listener, {bool singleUtterance = true, String modelParam = 'general'}) → void
Call this function before starting to get the duration, speechText and onConnection in realtime when playing Optional singleUtterance (default is true)
changeModelParam(String modelParam) → void
current({int channel = 0}) Future<Recording?>
Ask for current status of recording Returns the result of current recording status Metering level, Duration, Status...
dispose() → void
Call dispose() before close using vais speech
init(String path, {AudioFormat? audioFormat, int sampleRate = 16000, RecordMode recordMode = RecordMode.Offline, bool request = true, bool noiseFilter = false, bool startForeground = false, bool isWriteFile = false}) Future
Initialized recorder instance
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause() Future
Request currently Recording recording to be Paused Note: Use current to get latest state of recording after pause
resume() Future
Request currently Paused recording to continue
setNoiseFilter(bool bool) → void
setRequest(bool bool) → void
start() Future
Request an initialized recording instance to be started Once executed, audio recording will start working and a file will be generated in user's file system
stop() Future<Recording?>
Request the recording to stop and will not be start, resume, pause anymore.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

fs ↔ LocalFileSystem
getter/setter pair
hasPermissions Future<bool?>
Returns the result of record permission if not determined(app first launch), this will ask user to whether grant the permission
no setter

Constants

DEFAULT_EXTENSION → const String
tick → const Duration