# Patent

## Title
Method and apparatus for adjusting audio for a user environment

## Abstract

The method defines a user environment based on detected motion data and/or ambient noise data. The user environment is then used to apply an appropriate audio adjustment mode. In one embodiment, the user environment definition further includes location data. In one embodiment, the location data is obtained from one of: a global positioning system (GPS), and network triangulation.

## Background
RELATED APPLICATION
This patent application claims the benefit under 35 U.S.C. §119(e) of U.S. provisional application No. 61/055,137, filed May 21, 2008, which is incorporated by reference.


FIELD OF THE INVENTION
The present invention relates to adjusting headset or handset audio to a user's environment, and more precisely to adjusting an audio adjustment mode to a current environment.
BACKGROUND
As people are using mobile devices more and more often, noise becomes an issue. People are calling from environments like buses, restaurants, as well as while walking or jogging. Noise affects both mobile handsets as well as the audio headsets that are used with these handsets (both wired and wireless). The ambient noise is becoming more of an issue. There are many factors that contribute to this noise including background machine noise (vehicles, construction equipment, home/lawn equipment, etc.), wind moving over the microphone, wireless device transmission artifacts, echo, interference, etc.
In the prior art, there are some noise reduction mechanisms. However, noise reduction mechanisms have the unfortunate side-effect of reducing sound quality for the voice as well.
SUMMARY
A method and apparatus to define a user environment based on detected motion data and/or ambient noise data is disclosed. The user environment is then used to apply an appropriate audio adjustment mode. In one embodiment, the user environment definition further includes location data. In one embodiment, the location data is obtained from one of: a global positioning system (GPS), and network triangulation.



BRIEF DESCRIPTION OF THE DRAWINGS
The present invention is illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which like reference numerals refer to similar elements and in which:
FIG. 1 is a block diagram of one embodiment of the improved environmental response system.
FIG. 2 is a flowchart of one embodiment of the environmental response system.
FIG. 3 is a flowchart of one embodiment of identifying user motion.
FIG. 4 is a flowchart of one embodiment of identifying ambient noise.
FIG. 5 is a flowchart of one embodiment of identifying location.
FIG. 6 is an exemplary chart of relating a user environment to a noise reduction
FIG. 7 is a block diagram of one embodiment of the processing system which may be used to implement the environmental response system.



DETAILED DESCRIPTION
The method and apparatus described are to add intelligence to an audio adjustment system. The audio adjustment systems can be useful in reducing ambient noise for telephone conversations, increasing volume of the ringer or speaker in a louder environment, and otherwise adjusting the audio input and output for the current environment. However, prior art noise reduction mechanisms are either applied indiscriminately to all conversations, or require user input to control when they are utilized. An unfortunate side-effect of most noise reduction mechanisms is that the voice is altered, clipped, blurred, etc.
The present system applies motion data and ambient noise data to determine when audio adjustment should be utilized, and which audio adjustment mode(s) should be utilized. In one embodiment, location information is also applied. The entire data set, e.g. motion data, ambient noise data, and when available location data, are used to identify a user environment. The user environment information is then used to select an audio adjustment mode. The audio adjustment mode identifies zero, one, or more noise cancellation, noise decreasing, and audio output altering mechanisms that are applied to the device. In one embodiment, the present system may be utilized with any noise cancellation techniques.
The following detailed description of embodiments of the invention makes reference to the accompanying drawings in which like references indicate similar elements, showing by way of illustration specific embodiments of practicing the invention. Description of these embodiments is in sufficient detail to enable those skilled in the art to practice the invention. One skilled in the art understands that other embodiments may be utilized and that logical, mechanical, electrical, functional and other changes may be made without departing from the scope of the present invention. The following detailed description is, therefore, not to be taken in a limiting sense, and the scope of the present invention is defined only by the appended claims.
FIG. 1 is a block diagram of one embodiment of the improved environmental response system. In one embodiment, the system is part of a mobile device, which includes a telephone or other communications mechanism. The mobile device may be a mobile phone, a headset coupled to a mobile phone, a Voice-over-Internet Protocol (VoIP) phone, a cordless phone, or another communications mechanism which includes at least one microphone or motion detection system. In one embodiment, the device may further include audio output capability. In another embodiment, the mobile device may not include a communications mechanism, but may instead include only audio output mechanisms, e.g. a speaker. In one embodiment, the environmental response system may include portions located on a mobile device and portions remotely located.
Motion data receiver logic 110 receives motion data. In one embodiment, motion data is received from one or more accelerometers which part of one or more mobile devices which communicate. Motion data is then passed to motion analysis logic 120 in a processor. In one embodiment, motion data is buffered, and the processor obtains the buffered motion data. Motion analysis logic 120 uses the motion data to determine what the user is doing. In one embodiment, motion analysis logic 120 utilizes independent component analysis to analyze motion data for each of the accelerometers. The motion analysis logic 120 then combines the analyzed data to obtain a better result. For example, if there is a separate accelerometer in a headset and in a mobile device coupled to the headset, the motion data from both devices may be combined to get a better indicator of the user's actual activity.
In one embodiment, the motion analysis logic 120 categorizes the user's current activity level. In one embodiment, the motion categories include: laying down, sitting, standing, walking (may differentiate between various speeds, e.g. ambling v. speed walking), running (may differentiate between various speeds), travelling in a vehicle, etc. Note that these are just exemplary categorizations. The system may use any categories which can be identified based on the motion data received. In one embodiment, the motion analysis logic 120 utilizes a database of motion signatures 125, to determine what the user is doing. In one embodiment, the analysis of the motion may be done in accordance with the technique described in co-pending U.S. patent application Ser. No. 12/069,267, titled “Human Activity Monitoring Device with Activity Identification,” which is incorporated herein by reference.
The system in one embodiment further includes a sound receiving logic 130. Sound receiving logic 130 receives sound data from one or more microphones or other systems. In one embodiment, the sound receiving logic 130 may receive data from remote microphones (for example a microphone in a headset, while the system is located in a paired handset). The sound data is sent to ambient noise analysis 140. Ambient noise analysis 140 includes a microphone qualifying logic 145. The microphone qualifying logic 145 determines whether the microphone is in close enough vicinity to the user to be relevant to the analysis. If not, the data from the microphone is discarded. This is relevant for example when the microphone is on a handheld device which is located remotely from the user who is wearing a headset. Otherwise, the data from the microphone is passed on to normalization logic 150. Normalization logic 150 normalizes the microphone data to account for different relative locations on the user's body (e.g. worn on the head, in a pocket, in a holster, etc.)
The normalized sound data is then passed to noise level calculator 155, which calculates the actual ambient noise level based on data from all qualified microphones. In one embodiment, the ambient noise level being calculated is ideally at the user's ears, as that is where the user will be hearing a conversation, music, etc.
The system in one embodiment further includes location logic 160. Location logic 160 may receive data from a global positioning system (GPS) receiver, a network triangulation system, dead reckoning based on accelerometer data, or another means of determining an approximate location of the user. In one embodiment, the output of location logic 160 is coordinates identifying the user's current location. Mapping logic 165 converts the coordinate information into location information. In one embodiment, mapping logic 165 then converts the map location information into a location category. In one embodiment, the location category information includes: on a street in a city, on a street in a rural area, inside an office building, inside a restaurant, at a running track, etc. In one embodiment, mapping logic 165 indicates whether the user is inside or outside. In one embodiment, in addition to location data, barometric pressure data and temperature data may be used to confirm whether the user is inside or outside. In general, outside temperatures can be verified in various databases providing local temperature data. Inside temperatures are regulated based on air-conditioning and heating preferences. Thus, temperature data can help differentiate. Similarly, barometric pressure may indicate whether the user is on the ground floor, or at a second floor level or higher, indicating that the user is inside a building.
In one embodiment, location logic 160 receives data from the GPS or other system on a periodic basis. In another embodiment, location logic 160 polls the GPS or other system on a periodic basis. In one embodiment, whenever motion analysis logic 120 has determined that the user has travelled a certain distance, the location logic 160 polls the GPS or other system. In another embodiment, the GPS system may be providing continuous data to the system.
User environment generation logic 170 receives the available ones of the motion data, ambient noise data, and location data. In one embodiment, additional sensors such as pressure monitor (barometric pressure sensor), temperature sensor, or other sensor data may also be included in the analysis. User environment generation logic 170 generates an overall environment evaluation, based on the available data. In one embodiment, the overall environment is a set of variables which are selected based on the available data. In one embodiment, user environment generation logic 170 uses a set of profiles to identify the appropriate environment.
Audio adjustment mode selection logic 180 then receives the user environment, and selects an appropriate audio adjustment mode. The audio adjustment mode may include various noise reduction 185 and noise cancellation 190 mechanisms. The audio adjustment mode may also control the variables for the noise reduction mechanisms. In one embodiment, the audio adjustment mode may also include audio output 195 which can make changes to the output of other sounds. Audio output 195 may be used for adjusting ringer tone, tune, or volume, altering other notifications, or increasing/decreasing speaker volume. Other mechanisms to improve the user's experience in various audio environments may also be part of the audio adjustment modes available to audio adjustment mode selection logic 180.
For example, noise reduction mechanisms may include one or more of the following: a high, low, or bandpass filter (may include variable settings); microphone or speaker gain, noise removal algorithm to remove noise/sounds that have a frequency uncharacteristic of human speech, filters, equalization, signal clipping, smoothing for packet loss.
Noise cancellation mechanisms calculate a reversed version of ambient noise, and apply it to cancel out the noise.
FIG. 6 is an exemplary chart of relating a user environment to an audio adjustment mode. Note that this is simply exemplary. The set of audio adjustment tools which may be available may vary from system to system. The set of audio adjustment modes which may be available can vary from system to system.
FIG. 2 is a flowchart of one embodiment of environmental response system. The process starts at block 205. At block 210, the user motion is identified. This is used, in one embodiment, to determine what the user is doing. User motion may be determined based on data from one or more accelerometers. For example, in a mobile system which includes a handset and a headset, one or both may include accelerometers. The accelerometer data, in one embodiment from both devices when available, is utilized to identify the user motion.
At block 220, the ambient noise level is identified. The ambient noise level, in one embodiment, includes all noises detected by a microphone. In one embodiment, multiple microphones may be used.
At block 230, in one embodiment, the user location is identified. In one embodiment, this feature is available when a location identification tool is available within the system. This step may be skipped, if no location information is available. User location data may be an address, or an indication that the user is inside a building or outside.
At block 240, a combined “user environment” data set is generated. The user environment data may include information from other available sensors. For example, in one embodiment, the user environment data may include information from one or more of the following sensors: clock, camera, temperature sensor, barometer, heart rate. Any sensor which may be used to gauge a user's environment may be part of the combined “user environment” data.
At block 250, an audio adjustment mode is selected, based on the identified user environment. The audio adjustment mode may include one or more noise cancellation algorithms and/or settings for algorithms, one or more noise reduction algorithms and/or settings for algorithms, and adjustments in audio output. In one embodiment, one mode is to have no changes made.
The process then ends at block 260. In one embodiment, this monitoring occurs continuously. In one embodiment, a “user environment” evaluation occurs continuously. In another embodiment, the system monitors the user's environment periodically. In one embodiment, whenever a change is detected—e.g. substantial movement by the user, a change beyond a set range in any of the sensor outputs—the user's environment is reevaluated. In another embodiment, the system monitors only when there is an active call in progress, the user is listening to the device, or when there is other activity with the device which makes audio input and/or output adjustment relevant.
FIG. 3 is a flowchart of one embodiment of identifying user motion. As noted above, this may be done using one or more accelerometers, or other motion detection mechanisms. The process starts at block 310. At block 315, the process determines whether the user is taking steps. In one embodiment, a step detection system may be used.
If the user is taking steps, the process continues to block 320. At block 320, the type of steps being taken is identified. In one embodiment, the system can detect the difference between a leisurely amble, a walk, a jog, a sprint, and other types of steps that the user can take. The various types of steps indicate various modes of travel. For example, a user who is jogging has a different environment than one who is ambling, from a noise perspective. In one embodiment, the algorithm described in co-pending application Ser. No. 12/069,267 is used. The algorithm in one embodiment determines the cadence and speed of the user. For example, the optimal noise reduction mode for a user who is running is different from the optimal mode for a user who is walking at a slow pace. For example, the user's speed generates wind over the microphone and thus noise. The process then ends at block 350.
If the user was found not to be taking steps, the process continues to block 325. At block 325, if possible, the process determines whether the user is stationary. A stationary user is one that is not travelling. In one embodiment, a user who is not moving by a certain minimum amount is considered stationary. That is, a user who is shifting from one foot to another, while not moving, is considered a stationary user. In one embodiment, stationary users are generally standing or sitting. At block 330, the process determines whether the user is standing or sitting. In one embodiment, the system can also determine if the user is lying down. While sitting down, a user's waist area is moving in quite a different manner than while standing up.
In one embodiment, the determination is made based on minute motions made by the user's body. In one embodiment, this determination may be made using multiple accelerometers. In that instance, for example if there is an accelerometer in a headset and a handset worn at the waist. The process then ends at block 350.
If the user was not determined to be stationary, the process continues to block 335. At block 335, the process determines whether the user is in a vehicle. Vehicle motion has certain characteristics. The accelerations in a moving vehicle are quite characteristic. If the user is in a vehicle, the process continues to block 340. At block 340, the vehicle is identified, if possible. Generally, the driving characteristics of various vehicles differ. For example, a train has no side-to-side movement compared to a car. Once the vehicle is identified, the process ends at block 350.
In one embodiment, any other patterns that are known or developed can be utilized to attempt to identify the type of motion the user is undergoing at this time. However, if no motion is identified—or in one embodiment if no motion data is available—the process assigns an unidentified motion type to the detected motion at block 345. The process then ends at block 350. In one embodiment, this process is continuously evaluated, when the system is in operation.
FIG. 4 is a flowchart of one embodiment of identifying ambient noise. The process starts at block 405. In one embodiment, this process is activated only when there is at least one available microphone that can be used to measure ambient noise levels. At block 410, the process determines if there is a single microphone. If there is a single microphone, at block 420, the ambient noise level at the microphone is identified as the overall ambient noise level. The process then ends at block 495.
If there is more than one microphone, the process continues to block 430. There may be more than one microphone when there is, for example, a handset including a telephone and a Bluetooth connected headset including a microphone.
At block 440, the location of each microphone is identified based on location data. In one embodiment, location on or off the user's body is relevant in order to calculate the relevant ambient noise for any conversation.
At block 450, the process determines whether the microphones are close enough to be relevant. In one embodiment, since the devices including the microphones are linked in some wireless manner, a wireless packet may be sent to determine the microphone's proximity. Since the speed that such packets travel is known, by exchanging a set of packets, the processing mechanism can determine the distance between the microphones. If the microphones are not both close enough to be relevant, the process continues to block 460. At block 460, the microphone associated with the element that is worn by the user (e.g. the headset or handset or other device) is selected. The process then continues to block 420, to identify the ambient noise level at the selected microphone. In this way, when the two portions of the device are separated, the system selects the appropriate device to determine actual ambient noise in the vicinity of the user. In one embodiment, the multiple microphones are contained within the headset and situated in different directions.
If the microphones were close enough to be relevant, at block 450, the process continues to block 470. At block 470, an ambient noise level at each microphone is identified.
At block 480, the noise level data is normalized. For example, a device in a backpack worn by the user would detect a different ambient noise level than a headset worn by the same user. The location data—determined above—would be used, in one embodiment, to identify a basis for normalization.
At block 490, the normalized noise levels are used to create an ambient noise level. The ambient noise level corresponds to a noise level not including the user's own contribution. The process then ends at block 495
FIG. 5 is a flowchart of one embodiment of identifying location. The process starts at block 510. In one embodiment, this process occurs only if the environmental response system generally includes location capability. If the environmental response system doesn't include location capability at all, this process would not start.
At block 515, the process determines if GPS data is available. If so, at block 520, the user's coordinates are determined based on GPS data. At block 550, map information is obtained based on the coordinate information. In one embodiment, the mapping data may be part of the system. In another embodiment, the mapping data may be obtained from an external source. At block 560, mapping data is used to determine the user's location. The user's location may be on a street, in a restaurant, at a running track, etc.
At block 570, other sensor data is used to refine location data. Other sensors may include barometric sensors, which can indicate when a user is on a higher floor of a building. Other sensors may also include temperature sensors, which can indicate whether the user is in the open environment or in a heated or air-conditioned location (e.g. inside.).
If no GPS data is available, at block 525 the process determines whether network triangulation data is available. If so, at block 530, the user's coordinates are determined based on triangulation data. The process then continues to block 550 to obtain location from the triangulation data.
If no triangulation data is available, the process continues to block 535. At block 535, the process determines whether an alternate location determination system is available. If so, location data, coordination or other data, is obtained at block 540. If the data is coordinate data, or other data which requires conversion, the process continues to block 550, to obtain location information.
If no location determination system is available, the process tags the location as unknown at block 545. This would generally mean that no GPS or triangulation data is available, although the systems are available. The process then ends at block 580.
In one embodiment, this process actually doesn't flow in this way, but rather whatever system, or systems, are available, are utilized to obtain location information. In one embodiment, whenever the location determination mechanism receives incoming data—e.g. triangulation data, GPS data, or other data—an updated location is calculated. In one embodiment, the system may use these separate tools in combination to improve the coordinate quality.
FIG. 6 shows some possible adjustment modes which may be created, and the associated alterations to the input/output. For example, the modes may include: in office, in restaurant, on street, jogging, in car, etc. Each of these modes describes a particular set of local noise effects. For example, an office is generally relatively quiet, has other speakers, and echoes. In contrast, someone jogging is likely not going to be hearing as well (loud heart beat, and foot), but it is relatively unlikely to be hearing other speakers or experiencing echoes. These factors can be corrected-for.
FIG. 7 is a block diagram of a computer system which may be used in the present invention. The block diagram may apply to a mobile device, which is carried by the user.
The specific machine illustrated in FIG. 7 includes a bus or other internal communication means 715 for communicating information, and a processor 710 coupled to the bus 715 for processing information. The system further comprises a random access memory (RAM) or other volatile storage device 750 (referred to as memory), coupled to bus 715 for storing information and instructions to be executed by processor 710. Main memory 750 also may be used for storing temporary variables or other intermediate information during execution of instructions by processor 710. The system also comprises a read only memory (ROM) and/or static storage device 720 coupled to bus 715 for storing static information and instructions for processor 710, and a data storage device 725 such as a magnetic disk, optical disk and its corresponding disk drive, or flash memory. Data storage device 725 is coupled to bus 715 for storing information and instructions. In one embodiment, the accelerometer data and other temporary data are stored in main memory 750, which data such as motion characteristics are stored in static storage device 720.
The system may further be coupled to a visual display device 770, such as a cathode ray tube (CRT) or a liquid crystal display (LCD) coupled to bus 715 through bus 765 for displaying information to a computer user. An input device 775, which in one embodiment may include alphanumeric and other keys, may also be coupled to bus 715 through bus 765 for communicating information and command selections to processor 710. Input device 770 may also include cursor control device 780 for controlling cursor movement on display device 770.
Audio output device 780 is designed to output sounds, for example music or conversation. Audio output device 780 in general is a speaker, including volume adjusting mechanisms. Audio output device 780 in one embodiment includes various structures such as filters (bandpass, bandgap, high pass, low pass, linear filter) to alter the sound quality being output. Audio output device 780 in one embodiment further includes controls to provide for packet loss recovery. In another embodiment, these mechanisms are provided via processor 710, and applied to audio output device 780.
Audio input device 785 is designed to receive sounds from the user. In one embodiment, audio input device 785 is designed to receive data, and the data is packetized by processor 710, and transmitted via communication device 790. Audio input device 785 in one embodiment is a microphone or other receiver. In one embodiment, audio input device 785 includes filters (linear filter, bandpass, bandgap, high pass, low pass) to remove extraneous noise from the sound received. In one embodiment, audio input device 785 also incorporates signal clipping, adjustment of gain, and adjusting of volume. In another embodiment, these mechanisms are provided via processor 710, and applied to audio input device 785.
Another device, which may optionally be coupled to computer system 700, is a communication device 790 for accessing other nodes of a distributed system via a network. The communication device 790 may include any of a number of commercially available networking peripheral devices such as those used for coupling to an Ethernet, token ring, Internet, personal area network (PAN), cellular network, wireless network, or other network. The communication device 790 may further be a null-modem connection, or any other mechanism that provides connectivity between the computer system 700 and the outside world. Note that any or all of the components of this system illustrated in FIG. 7 and associated hardware may be used in various embodiments of the present invention.
It will be appreciated by those of ordinary skill in the art that any configuration of the system may be used for various purposes according to the particular implementation. The control logic or software implementing the present invention can be stored in main memory 750, mass storage device 725, or other storage medium locally or remotely accessible to processor 710.
It will be apparent to those of ordinary skill in the art that the system, method, and process described herein can be implemented as software stored in main memory 750 or read only memory 720 and executed by processor 710. This control logic or software may also be resident on an article of manufacture comprising a computer readable medium having computer readable program code embodied therein and being readable by the mass storage device 725 and for causing the processor 710 to operate in accordance with the methods and teachings herein.
The present invention may also be embodied in a handheld or portable device containing a subset of the computer hardware components described above. For example, the handheld device may be configured to contain only the bus 715, the processor 710, and memory 750 and/or 725, and audio output 780 and input 785 devices. The handheld device may also be configured to include a set of buttons or input signaling components with which a user may select from a set of available options. The handheld device may also be configured to include an output apparatus such as a liquid crystal display (LCD) or display element matrix for displaying information to a user of the handheld device. The implementation of the present invention for such a device would be apparent to one of ordinary skill in the art given the disclosure of the present invention as provided herein.
The present invention may also be embodied in a special purpose device, such as a headset, including a subset of the computer hardware components described above. For example, the headset may include a processor 710, a data storage device 725, a bus 715, and memory 750, and only rudimentary communications mechanisms, such as audio input and output that permits the user to communicate in a basic manner with the device. In general, the more special-purpose the device is, the fewer of the elements need be present for the device to function. In some devices, communications with the user may be through a voice based system, or similar mechanism.
It will be appreciated by those of ordinary skill in the art that any configuration of the system may be used for various purposes according to the particular implementation. The control logic or software implementing the present invention can be stored on any machine-readable medium locally or remotely accessible to processor 710. A machine-readable medium includes any mechanism for storing information in a form readable by a machine (e.g. a computer). For example, a machine readable medium includes read-only memory (ROM), random access memory (RAM), magnetic disk storage media, optical storage media, flash memory devices, or other storage media which may be used for temporary or permanent data storage. In one embodiment, the control logic may be implemented as transmittable data, such as electrical, optical, acoustical or other forms of propagated signals (e.g. carrier waves, infrared signals, digital signals, etc.).
In the foregoing specification, the invention has been described with reference to specific exemplary embodiments thereof. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader spirit and scope of the invention as set forth in the appended claims. The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense.

## Claims

1. A method and to define a user environment comprising:
detecting motion data;
detecting ambient noise data;
identifying a user environment based on the motion data and the ambient noise data, wherein the user environment is selected from a plurality of predefined environments, each predefined environment associated with a certain user activity level, ambient noise data, and location data when available; and
selecting an appropriate audio input and output adjustment mode based on the selected user environment data.

2. The method of claim 1, further comprising:
detecting location data; and
utilizing the location data in defining the user environment.

3. The method of claim 2, wherein the location data is obtained from one of: a global positioning system (GPS), and network triangulation.

4. The method of claim 2, wherein detecting location data comprises:
receiving coordinate data from a location sensor; and
mapping the coordinate data onto a map to determine the location data.

5. The method of claim 2, wherein detecting location data comprises:
determining whether a user is in an inside environment or an outside environment, based on one or more of: temperature data, barometer data, global positioning.

6. The method of claim 1, wherein the audio input adjustment mode includes one or more of the following: noise reduction, noise cancellation, and audio output adjustment mode includes one or more of: speaker adjustment, and audio output mode selection.

7. The method of claim 1, wherein the defined environments comprise: in office, on street, in moving vehicle, at exercise, in home, in restaurant or store.

8. The method of claim 1, wherein the user environment is identified continuously during a telephone call, and a change in the predefined environment results in adjusting an audio input and/or an audio output to improve communication quality based on the user environment.

9. A mobile device comprising:
a motion data receiver logic to receive motion data;
a sound receiving logic to receive ambient noise data;
a user environment generation logic to identify a user environment associated with the mobile device based on a user activity level based on the motion data, the ambient noise data, and location information when available, the user environment being one of a plurality of predefined environments; and
an audio adjustment mode selection logic to select an appropriate adjustment to be applied to an audio output and an audio input of the mobile device based on the identified environment.

10. The mobile device of claim 9, further comprising:
a motion analysis logic to categorize how a user is using the mobile device based on the motion data; and
a memory coupled with the motion analysis logic to store one or more motion signatures, each motion signature associated with a category of user motion.

11. The mobile device of claim 10, further comprising:
the motion analysis logic to receive motion data from two or more motion sensing components, analyze motion data associated with each of the motion sensing components, and combine the analyzed motion data before determining how a user is using the mobile device.

12. The mobile device of claim 9, further comprising:
an ambient noise analysis logic to determine whether one or more microphones coupled with the mobile device are relevant to identifying a user environment,
when a plurality of microphones are identified as relevant, a normalization logic to normalize microphone data based on a relative location with respect to a user's ear of the plurality of microphones, and a noise level calculator to calculate an ambient noise level based on data from all microphones that have been determined relevant.

13. The mobile device of claim 9, further comprising:
a location logic to receive location data from one of a global positioning system (GPS) and network triangulation; and
a mapping logic coupled with the location logic to convert the location data to a location, and to provide the location to the user environment generation logic.

14. The mobile device of claim 9, further comprising:
the user environment generation logic to receive additional environmental data from one or more of a pressure monitor and a temperature sensor to evaluate when identifying the user environment.

15. The mobile device of claim 9, wherein the adjustment to be applied to the audio input of mobile device includes one or more of the following: noise reduction, noise cancellation, and/or the adjustment applied to the audio output includes one or more of: speaker adjustment, and audio output mode selection.

16. The apparatus of claim 9, wherein the defined environments comprise one of: in office, on street, in moving vehicle, at exercise, in home, in restaurant or store.

17. The apparatus of claim 9, wherein the user environment generation logic determines changes to the user environment during a telephone call made with the mobile device, such that the audio adjustment mode selection logic changes the appropriate adjustment during the telephone call, when the predefined environment changes.

18. An apparatus comprising:
an accelerometer to receive motion data, and send the motion data to a motion data receiver logic;
a processor to classify a user environment as one of a plurality of possible predefined environments based on user activity data based on the motion data and ambient noise data detected by the apparatus and location data; and
a speaker capable of adjustment, and the processor to adjust the speaker volume based on the classification of the user environment; and
a microphone to receive sound from the user, the microphone capable of being adjusted based on the classification of the user environment.

19. The apparatus of claim 18, further comprising;
a filter to adjust a sound response of the speaker, based on the user environment.

20. The apparatus of claim 19, wherein the filter is one of: a low pass filter, a high pass filter, and band pass filter, and a band gap filter, and further,
where the filter is implemented as one of: a hardware filter connected inline, a software filter implemented by the processor, and a combination of hardware and software element.

21. The apparatus of claim 18, further comprising:
a global positioning system (GPS) receiver to receive GPS data; and
the processor to adjust the user environment based on the GPS data.

22. The apparatus of claim 18, further comprising:
the processor monitoring for changes in the user environment during a telephone call, and changes the appropriate adjustment during the telephone phone call when the predefined environment changes.