• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 6. Microphone and Camera > Working with Microphone/Audio Input

6.1. Working with Microphone/Audio Input

Flash Player 6 and higher support the intrinsic Microphone class, enabling Flash to accept audio input from the client. The Microphone class does not interface directly with FlashCom, but it does provide the means by which you can capture the input and send it over a stream to the FlashCom application on the server. In the simplest scenario, working with microphone input requires very minimal code. Of course, many other scenarios will require more sophistication. In the following sections, you'll get the chance to learn how to use the Microphone class to create applications of varying complexity.

6.1.1. Getting the Microphone/Audio Input

Before you can do anything with microphone input, you need to open a Microphone instance that references the device. The static Microphone.get( ) method returns a reference to a Microphone instance, which creates a connection to a specific device attached to the computer:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint