Packagecom.aispeech.recorder
Classpublic class LocalWave
InheritanceLocalWave Inheritance flash.events.EventDispatcher



Public Properties
 PropertyDefined By
  buffer : ByteArray
[read-only]
LocalWave
  isLocalService : Boolean
[write-only]
LocalWave
  lastRecord : ByteArray
[read-only]
LocalWave
  lastRecordId : String
[write-only]
LocalWave
  replayVolume : Number
get replay volume
LocalWave
  sampleRate : int
[read-only]
LocalWave
Public Methods
 MethodDefined By
  
LocalWave(singleMade:SingleMade)
Singlton Constructor
LocalWave
  
[static]
LocalWave
  
hasRecord(recordId:String):Boolean
check whether have the recordId
LocalWave
  
init(localStorageLimit:Number = 20):void
init local wave recorder
LocalWave
  
reset():void
reset local wave
LocalWave
  
startRecord(recordId:String):void
start record
LocalWave
  
startReplay(recordId:String):void
start replay
LocalWave
  
stopRecord():void
stop record
LocalWave
  
stopReplay():void
stop replay
LocalWave
Public Constants
 ConstantDefined By
  END_OF_STREAM : String = end.of.stream
[static]
LocalWave
  START_OF_STREAM : String = start.of.stream
[static]
LocalWave
  WHOLE_STREAM : String = whole.stream
[static]
LocalWave
Property Detail
bufferproperty
buffer:ByteArray  [read-only]


Implementation
    public function get buffer():ByteArray
isLocalServiceproperty 
isLocalService:Boolean  [write-only]


Implementation
    public function set isLocalService(value:Boolean):void
lastRecordproperty 
lastRecord:ByteArray  [read-only]


Implementation
    public function get lastRecord():ByteArray
lastRecordIdproperty 
lastRecordId:String  [write-only]


Implementation
    public function set lastRecordId(value:String):void
replayVolumeproperty 
replayVolume:Number

get replay volume


Implementation
    public function get replayVolume():Number
    public function set replayVolume(value:Number):void
sampleRateproperty 
sampleRate:int  [read-only]


Implementation
    public function get sampleRate():int
Constructor Detail
LocalWave()Constructor
public function LocalWave(singleMade:SingleMade)

Singlton Constructor

Parameters
singleMade:SingleMade
Method Detail
getInstance()method
public static function getInstance():LocalWave

Returns
LocalWave
hasRecord()method 
public function hasRecord(recordId:String):Boolean

check whether have the recordId

Parameters

recordId:String

Returns
Boolean
init()method 
public function init(localStorageLimit:Number = 20):void

init local wave recorder

Parameters

localStorageLimit:Number (default = 20) — ( unit is MB )

reset()method 
public function reset():void

reset local wave

startRecord()method 
public function startRecord(recordId:String):void

start record

Parameters

recordId:String

startReplay()method 
public function startReplay(recordId:String):void

start replay

Parameters

recordId:String

stopRecord()method 
public function stopRecord():void

stop record

stopReplay()method 
public function stopReplay():void

stop replay

Constant Detail
END_OF_STREAMConstant
public static const END_OF_STREAM:String = end.of.stream

START_OF_STREAMConstant 
public static const START_OF_STREAM:String = start.of.stream

WHOLE_STREAMConstant 
public static const WHOLE_STREAM:String = whole.stream