| Package | com.aispeech.recorder |
| Class | public class Recorder4LocalService |
| Inheritance | Recorder4LocalService RecorderBase flash.events.EventDispatcher |
| Implements | IRecorder |
| Method | Defined By | ||
|---|---|---|---|
Recorder4LocalService(singleMade:SingleMade)
Singleton constructor
| Recorder4LocalService | ||
dispose():void | Recorder4LocalService | ||
[static] | Recorder4LocalService | ||
Init a recorder
| Recorder4LocalService | ||
![]() | playDing():void | RecorderBase | |
startRecord(recordLength:int = 2000):String
Start recording, pulish stream to the target server
| Recorder4LocalService | ||
![]() | startReplay(recordId:String):String
start replay using local wave
| RecorderBase | |
stopRecord(stopType:String):String
Stop recording the audio
| Recorder4LocalService | ||
![]() | stopReplay():String
Stop replaying
| RecorderBase | |
| Recorder4LocalService | () | Constructor |
public function Recorder4LocalService(singleMade:SingleMade)Singleton constructor
ParameterssingleMade:SingleMade |
| dispose | () | method |
public function dispose():void| getInstance | () | method |
| init | () | method |
public function init(connection:IConnection, coreRequester:ICoreRequester):voidInit a recorder
Parameters
connection:IConnection | |
coreRequester:ICoreRequester |
| startRecord | () | method |
public function startRecord(recordLength:int = 2000):StringStart recording, pulish stream to the target server
Parameters
recordLength:int (default = 2000) — in ms |
String |
| stopRecord | () | method |
public function stopRecord(stopType:String):StringStop recording the audio
Parameters
stopType:String — to the sender of the stop_recording command
|
String |