TWI584275B - Electronic device and method for analyzing and playing sound signal - Google Patents

Electronic device and method for analyzing and playing sound signal Download PDF

Info

Publication number
TWI584275B
TWI584275B TW103140768A TW103140768A TWI584275B TW I584275 B TWI584275 B TW I584275B TW 103140768 A TW103140768 A TW 103140768A TW 103140768 A TW103140768 A TW 103140768A TW I584275 B TWI584275 B TW I584275B
Authority
TW
Taiwan
Prior art keywords
sound signal
parameter
dynamic range
electronic
processor
Prior art date
Application number
TW103140768A
Other languages
Chinese (zh)
Other versions
TW201619955A (en
Inventor
漢熙 唐
胡俊仁
林宥余
Original Assignee
宏達國際電子股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 宏達國際電子股份有限公司 filed Critical 宏達國際電子股份有限公司
Priority to TW103140768A priority Critical patent/TWI584275B/en
Publication of TW201619955A publication Critical patent/TW201619955A/en
Application granted granted Critical
Publication of TWI584275B publication Critical patent/TWI584275B/en

Links

Description

Analysis and playback method of electronic device and sound signal
The present invention relates to a method of processing an electronic device and a sound signal, and more particularly to an analysis and playback method of an electronic device and a sound signal.
There are many electronic devices with recording and broadcasting functions, such as smart phones. Recording can occur in a variety of different scenarios, such as conference rooms, outdoor events, concerts, and more. In these scenes, the volume of the recorded sounds may vary greatly.
When playing back previously recorded sounds, current electronic devices use the same tuning parameters, such as the same gain value, for sounds recorded in various scenes. If you use the same gain value during playback to amplify the sound recorded in different scenes, some sounds will be too low, and some sounds will be too loud, which will affect the sound quality that the user hears.
The invention provides a method for analyzing and playing an electronic device and a sound signal to solve the problem of sound quality caused by the same parameters mentioned above.
The electronic device of the present invention includes a microphone, a processor, and a speaker. The microphone receives the sound and generates a sound signal accordingly. The processor is coupled to the microphone for analyzing the sound signal to obtain an analysis parameter, determining a dynamic range parameter according to the analysis parameter, and adjusting the sound signal according to the dynamic range parameter. The speaker is coupled to the processor for playing the adjusted sound signal.
The method for analyzing and playing a sound signal of the present invention comprises the steps of: receiving a sound and generating a sound signal according to the same; analyzing the sound signal to obtain an analysis parameter; determining a dynamic range parameter according to the analysis parameter; adjusting the sound signal according to the dynamic range parameter; Adjusted sound signal.
Based on the above, the method for analyzing and playing the electronic device and the sound signal of the present invention can set the dynamic range parameter for playing the sound signal according to the parameter obtained by analyzing the sound signal, so that the most suitable dynamic range parameter can be automatically selected to improve the sound signal. The sound quality during playback.
The above described features and advantages of the invention will be apparent from the following description.
100‧‧‧Electronic devices
110‧‧‧ microphone
120‧‧‧ processor
130‧‧‧Storage device
140‧‧‧Amplifier
150‧‧‧Speakers
210~240, 310~350‧‧‧ method steps
1 is a schematic diagram of an electronic device in accordance with an embodiment of the present invention.
2 and 3 are flow charts of a method for analyzing and playing a sound signal according to an embodiment of the invention.
1 is a schematic diagram of an electronic device 100 in accordance with an embodiment of the present invention. The electronic device 100 can be any electronic device having a recording and broadcasting function, such as a smart phone, a personal digital assistant (PDA), a tablet computer, a notebook computer, or a desktop computer. The electronic device 100 includes a microphone 110, a processor 120, a storage device 130, an amplifier 140, and a speaker 150. The processor 120 is coupled to the microphone 110, the storage device 130, and the amplifier 140. The amplifier 140 is coupled between the processor 120 and the speaker 150. The storage device 130 can be a volatile memory, a non-volatile memory, or a hard disk. In this embodiment, the microphone 110 generally refers to any electronic component that can receive external sounds and thereby generate sound signals, and the speaker 150 generally refers to any electronic component that can play a sound signal to generate sound.
2 is a flow chart of a method for analyzing and playing a sound signal, which may be executed by the electronic device 100 to record a sound signal, in accordance with an embodiment of the present invention. At step 210, the microphone 110 receives sound from the outside and generates a sound signal accordingly. At step 220, processor 120 performs a recording algorithm. The recording algorithm may include eliminating noise in the sound signal and equalizing the sound signal. The above equalization process refers to adjusting the volume of different frequency bands of the sound signal to optimize the playback effect of the sound signal.
At step 230, processor 120 analyzes the sound signal to obtain an analysis parameter of the sound signal. Overall, the analysis parameters represent the sound signal in the time domain. And / or the distribution of the frequency domain. The analysis parameters can include one or more parameters. For example, the analysis parameters may include a histogram of a sound pressure level (SPL). The analysis parameters may also include the mean and variance of the volume of the sound signal. The analysis parameters may also include the distribution of the sound signal in the frequency domain.
At step 240, processor 120 stores the sound signal and its analysis parameters in storage device 130. For example, the processor 120 may encode the sound signal and the analysis parameters into the same file or two different files and store them in the storage device 130. If the sound signal is stored in the same file as the analysis parameters, the analysis parameters can be stored in the header of this file.
3 is another flow chart of the above method for analyzing and playing a sound signal, which may be executed by the electronic device 100 to play a sound signal stored in the storage device 130. At step 310, the processor 120 reads the previously recorded audio signal and its analysis parameters from the storage device 130. At step 320, the processor 120 classifies the sound signal into one of a plurality of categories based on the analysis parameters. Each category can correspond to one recording scene. Table 1 below is an example of a classification.
In the example of Table 1, the analysis parameter is the average of the volume (SPL) of the sound signal. Values, sound signals can be divided into four categories according to the average value, and each category corresponds to a recording scene, indicating in which scene the sound signal is recorded. Each category can correspond to one or more dynamic range parameters. After the processor 120 classifies the sound signal according to the analysis parameter, in step 330, the processor 120 sets the dynamic range parameter corresponding to the type to which the sound signal belongs to a dynamic range parameter for playing the sound signal. The dynamic range parameters corresponding to each category are determined in advance, so that the user can feel the best playback effect when playing back the sound signals of the kind. Thus, steps 320 and 330 can determine the optimal dynamic range parameter based on the analysis parameters of the sound signal.
At step 340, the processor 120 performs a playback algorithm using the previously set dynamic range parameter, which is to adjust the sound signal according to the previously set dynamic range parameter.
The corresponding dynamic range parameter for each category may include one or more parameters. For example, the dynamic range parameter can include a gain value G 0 . At step 340, the processor 120 may amplify the sound signal using the gain value G 0 .
The dynamic range parameter can also include one or more control parameters. At step 340, the processor 120 can control the dynamic range of the sound signal based on the control parameters.
The sound signal can include multiple frequency bands. The dynamic range parameter may also include a plurality of gain values G 1 ~G N corresponding to the plurality of frequency bands, where N is the number of frequency bands of the sound signal. At step 340, the processor 120 may equalize the sound signal using the gain values G 1 ~ G N . That is, for each of the above frequency bands, the processor 120 can amplify the frequency band using the gain value corresponding to the frequency band.
Table 2 below is an example of a dynamic range parameter.
In the example of Table 2, the sound signal can be divided into two types, the recording scene corresponding to category 1 is a concert, and the recording scene corresponding to category 2 is a conference. The dynamic range parameters corresponding to the two types include the gain value G 0 , the control parameter, and the gain values G 1 ~G N . If the sound signal is classified as category 1, the corresponding gain value G 0 is small because the volume of the concert is already large enough and does not require much gain. The control parameters corresponding to category 1 will weaken the dynamic range of the sound signal. The gain values G 1 ~G N corresponding to category 1 optimize the bass and treble bands of the sound signal. If the sound signal is classified into category 2, the corresponding gain value G 0 is large because the volume of the average person's speech is insufficient, and amplification is required at the time of broadcasting. The control parameters corresponding to category 2 enhance the dynamic range of the sound signal. The gain values G 1 ~ G N corresponding to category 2 enhance the voice band of the sound signal.
Next, at step 350, amplifier 140 amplifies the sound signal processed by the playback algorithm, and speaker 150 then plays the sound signal to produce a user audible sound.
In summary, the present invention can be sound based on the analysis result of the sound signal. Signal classification, and then select the most suitable dynamic range parameter for the sound signal to improve the sound quality when the sound signal is played.
Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention, and any one of ordinary skill in the art can make some changes and refinements without departing from the spirit and scope of the present invention. The scope of the invention is defined by the scope of the appended claims.
100‧‧‧Electronic devices
110‧‧‧ microphone
120‧‧‧ processor
130‧‧‧Storage device
140‧‧‧Amplifier
150‧‧‧Speakers

Claims (14)

  1. An electronic device comprising: a microphone for receiving a sound and generating a sound signal; a processor coupled to the microphone for analyzing the sound signal to obtain an analysis parameter after eliminating noise in the sound signal Determining a dynamic range parameter according to the analysis parameter, and adjusting the sound signal according to the dynamic range parameter; and a speaker coupled to the processor to play the adjusted sound signal.
  2. The electronic device of claim 1, wherein the analysis parameter comprises a distribution of a volume of the sound signal.
  3. The electronic device of claim 1, wherein the analysis parameter comprises an average value and a variation of the volume of the sound signal.
  4. The electronic device of claim 1, wherein the analysis parameter comprises a distribution of the sound signal in a frequency domain or a distribution in a time domain.
  5. The electronic device of claim 1, wherein the processor classifies the sound signal into one of a plurality of categories according to the analysis parameter, and the dynamic range parameter determined by the processor is corresponding to the category Dynamic range parameters.
  6. The electronic device of claim 1, wherein the dynamic range parameter comprises a gain value, and the processor uses the gain value to amplify the sound signal.
  7. The electronic device of claim 1, wherein the dynamic range parameter comprises a control parameter, and the processor controls the dynamic range of the sound signal according to the control parameter.
  8. An electronic device according to claim 1, wherein the sound signal The method includes a plurality of frequency bands, and the dynamic range parameter includes a plurality of gain values corresponding to the plurality of frequency bands, and for each of the frequency bands, the processor amplifies the frequency band by using the corresponding gain value.
  9. The electronic device of claim 1, further comprising: a storage device coupled to the processor to store the sound signal and the analysis parameter; and an amplifier coupled between the processor and the speaker Enlarging the adjusted sound signal before the speaker plays the sound signal.
  10. The electronic device of claim 9, wherein the processor stores the sound signal in a file in the storage device, and stores the analysis parameter in a header of the file.
  11. A method for analyzing and playing a sound signal, comprising: after canceling noise in the sound signal, receiving a sound and generating a sound signal; analyzing the sound signal to obtain an analysis parameter; determining a dynamic range according to the analysis parameter a parameter; adjusting the sound signal according to the dynamic range parameter; and playing the adjusted sound signal.
  12. The method for analyzing and playing a sound signal according to claim 11, wherein the step of determining the dynamic range parameter according to the analysis parameter comprises: classifying the sound signal into one of a plurality of categories according to the analysis parameter, wherein The dynamic range parameter is a dynamic range parameter corresponding to the category.
  13. The method for analyzing and playing a sound signal according to claim 11, wherein the sound signal comprises a plurality of frequency bands, and the dynamic range parameter comprises a plurality of gain values corresponding to the plurality of frequency bands, and the sound signal is analyzed and played. The method further includes: for each of the above frequency bands, amplifying the frequency band by using the corresponding gain value.
  14. The method for analyzing and playing a sound signal according to claim 11 further includes: storing the sound signal in a file; and storing the analysis parameter in a header of the file.
TW103140768A 2014-11-25 2014-11-25 Electronic device and method for analyzing and playing sound signal TWI584275B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW103140768A TWI584275B (en) 2014-11-25 2014-11-25 Electronic device and method for analyzing and playing sound signal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW103140768A TWI584275B (en) 2014-11-25 2014-11-25 Electronic device and method for analyzing and playing sound signal

Publications (2)

Publication Number Publication Date
TW201619955A TW201619955A (en) 2016-06-01
TWI584275B true TWI584275B (en) 2017-05-21

Family

ID=56755047

Family Applications (1)

Application Number Title Priority Date Filing Date
TW103140768A TWI584275B (en) 2014-11-25 2014-11-25 Electronic device and method for analyzing and playing sound signal

Country Status (1)

Country Link
TW (1) TWI584275B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090228272A1 (en) * 2007-11-12 2009-09-10 Tobias Herbig System for distinguishing desired audio signals from noise
TW201126517A (en) * 2009-05-26 2011-08-01 Dolby Lab Licensing Corp Equalization profiles for dynamic equalization of audio data
TW201214418A (en) * 2010-07-12 2012-04-01 Audience Inc Monaural noise suppression based on computational auditory scene analysis
TWI406553B (en) * 2009-12-04 2013-08-21 Htc Corp Method for improving communication quality based on ambient noise sensing and electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090228272A1 (en) * 2007-11-12 2009-09-10 Tobias Herbig System for distinguishing desired audio signals from noise
TW201126517A (en) * 2009-05-26 2011-08-01 Dolby Lab Licensing Corp Equalization profiles for dynamic equalization of audio data
TWI406553B (en) * 2009-12-04 2013-08-21 Htc Corp Method for improving communication quality based on ambient noise sensing and electronic device
TW201214418A (en) * 2010-07-12 2012-04-01 Audience Inc Monaural noise suppression based on computational auditory scene analysis

Also Published As

Publication number Publication date
TW201619955A (en) 2016-06-01

Similar Documents

Publication Publication Date Title
US10466957B2 (en) Active acoustic filter with automatic selection of filter parameters based on ambient sound
CN107124149B (en) Volume adjustment method, device and equipment
US10109288B2 (en) Dynamic range and peak control in audio using nonlinear filters
JP2008504783A (en) Method and system for automatically adjusting the loudness of an audio signal
JP2010513974A (en) System for processing audio data
US20120275625A1 (en) Signal processing device, method thereof, program, and data recording medium
JP2013109346A (en) Automatic gain control
JP4327886B1 (en) SOUND QUALITY CORRECTION DEVICE, SOUND QUALITY CORRECTION METHOD, AND SOUND QUALITY CORRECTION PROGRAM
US20110002467A1 (en) Dynamic enhancement of audio signals
CN103152668A (en) Adjusting method of output audio and system thereof
US20150365061A1 (en) System and method for modifying an audio signal
CN103746668A (en) Sound volume control method and system
JP2005184154A (en) Unit and method for automatic gain control
US8462964B2 (en) Recording apparatus, recording method, audio signal correction circuit, and program
US20120016505A1 (en) Electronic audio device
TWI584275B (en) Electronic device and method for analyzing and playing sound signal
US9423997B2 (en) Electronic device and method for analyzing and playing sound signal
JP5062055B2 (en) Audio signal processing apparatus and method
CN105720937A (en) Electronic device and analysis and play method for sound signals
US10091582B2 (en) Signal enhancement
KR20070022116A (en) Method of and system for automatically adjusting the loudness of an audio signal
WO2020020043A1 (en) Compressor target curve to avoid boosting noise
JP6807769B2 (en) Sound equipment and sound quality adjustment method
US20190074805A1 (en) Transient Detection for Speaker Distortion Reduction
KR20120022650A (en) Method and apparatus for audio signal reproduction by adaptively controlling of filter coefficient