Packagecom.aispeech.recorder
Classpublic class Recorder4HTTPService
InheritanceRecorder4HTTPService Inheritance RecorderBase Inheritance flash.events.EventDispatcher
Implements IRecorder

Singlton audio recorder/replayer used with HTTP service Dependencies: CoreRequester4HTTPService, HTTPConnection, Check RecorderBase for base method and properties



Public Properties
 PropertyDefined By
 InheriteddingPlayEnabled : Boolean
RecorderBase
 InheriteddingVolume : Number
Set ding volume
RecorderBase
 InheritedreplayVolume : Number
get replay volume
RecorderBase
 Inheritedstate : String
[read-only]
RecorderBase
Protected Properties
 PropertyDefined By
 Inherited_dingIndex : uint
RecorderBase
 Inherited_localWave : LocalWave
RecorderBase
 Inherited_recorderLog : RecorderLog
RecorderBase
 Inherited_recordId : String
RecorderBase
 Inherited_recordingTimerId : int
RecorderBase
 Inherited_recordLength : int
RecorderBase
 Inherited_requestId : String
RecorderBase
 Inherited_state : String = recorder.not.ready
RecorderBase
 Inherited_stopType : String
RecorderBase
Public Methods
 MethodDefined By
  
Recorder4HTTPService(singleMade:SingleMade)
Recorder4HTTPService
  
dispose():void
Recorder4HTTPService
  
[static]
Recorder4HTTPService
  
init(connection:IConnection, coreRequester:ICoreRequester):void
Recorder4HTTPService
 Inherited
playDing():void
RecorderBase
  
startRecord(recordLength:int = 2000):String
Recorder4HTTPService
 Inherited
startReplay(recordId:String):String
start replay using local wave
RecorderBase
  
stopRecord(stopType:String):String
Recorder4HTTPService
 Inherited
stopReplay():String
Stop replaying
RecorderBase
Protected Methods
 MethodDefined By
 Inherited
genRecordId():String
Generate record ID, using UUID
RecorderBase
 Inherited
getWaveLength(wave:ByteArray, sampleRate:int):Number
get wave length (ms)
RecorderBase
 Inherited
replay stop event handler
RecorderBase
Public Constants
 ConstantDefined By
 InheritedRECORD_LENGTH : int = 2000
[static]
RecorderBase
 InheritedSTOP_TYPE_AUTO : String = stop.auto
[static]
RecorderBase
 InheritedSTOP_TYPE_MANUAL : String = stop.manually
[static]
RecorderBase
Constructor Detail
Recorder4HTTPService()Constructor
public function Recorder4HTTPService(singleMade:SingleMade)



Parameters
singleMade:SingleMade
Method Detail
dispose()method
public function dispose():void

getInstance()method 
public static function getInstance():Recorder4HTTPService

Returns
Recorder4HTTPService
init()method 
public function init(connection:IConnection, coreRequester:ICoreRequester):void

Parameters

connection:IConnection
 
coreRequester:ICoreRequester

startRecord()method 
public function startRecord(recordLength:int = 2000):String

Parameters

recordLength:int (default = 2000)

Returns
String
stopRecord()method 
public function stopRecord(stopType:String):String

Parameters

stopType:String

Returns
String