Packagecom.aispeech.view
Classpublic class MicrophonePanel
InheritanceMicrophonePanel Inheritance flash.display.Sprite

the microphone panel mainly contains three panel: microphone volume meter, micorphone volume view (wave form), microphone volume adjust slider



Public Properties
 PropertyDefined By
  BACKGROUND_COLOUR : uint = 0xffffffff
[static]
MicrophonePanel
Public Methods
 MethodDefined By
  
MicrophonePanel(params:Object)
MicrophonePanel constructor
MicrophonePanel
  
disposeAll():void
MicrophonePanel
  
MicrophonePanel
  
MicrophonePanel
  
MicrophonePanel
  
setSilderValue(value:int):void
MicrophonePanel
  
showMicrophoneVolumeMeter(offsetX:Number = 0, offsetY:Number = 0):void
MicrophonePanel
  
showMicrophoneVolumeSlider(offsetX:Number = 0, offsetY:Number = 0):void
MicrophonePanel
  
showMicrophoneVolumeViewer(offsetX:Number = 0, offsetY:Number = 0):void
MicrophonePanel
Public Constants
 ConstantDefined By
  HEIGHT : int = 140
[static]
MicrophonePanel
  WIDTH : int = 220
[static]
MicrophonePanel
Property Detail
BACKGROUND_COLOURproperty
public static var BACKGROUND_COLOUR:uint = 0xffffffff

Constructor Detail
MicrophonePanel()Constructor
public function MicrophonePanel(params:Object)

MicrophonePanel constructor

Parameters
params:Object — { backgroundColor:uint, language:["zh-CN" | "en"], border: { thickness:Number, color:unit, alpha:Number } }
Method Detail
disposeAll()method
public function disposeAll():void

hideMicrophoneVolumeMeter()method 
public function hideMicrophoneVolumeMeter():void

hideMicrophoneVolumeSlider()method 
public function hideMicrophoneVolumeSlider():void

hideMicrophoneVolumeViewer()method 
public function hideMicrophoneVolumeViewer():void

setSilderValue()method 
public function setSilderValue(value:int):void

Parameters

value:int

showMicrophoneVolumeMeter()method 
public function showMicrophoneVolumeMeter(offsetX:Number = 0, offsetY:Number = 0):void

Parameters

offsetX:Number (default = 0)
 
offsetY:Number (default = 0)

showMicrophoneVolumeSlider()method 
public function showMicrophoneVolumeSlider(offsetX:Number = 0, offsetY:Number = 0):void

Parameters

offsetX:Number (default = 0)
 
offsetY:Number (default = 0)

showMicrophoneVolumeViewer()method 
public function showMicrophoneVolumeViewer(offsetX:Number = 0, offsetY:Number = 0):void

Parameters

offsetX:Number (default = 0)
 
offsetY:Number (default = 0)

Constant Detail
HEIGHTConstant
public static const HEIGHT:int = 140

WIDTHConstant 
public static const WIDTH:int = 220