TWI665662B - Portable electronic device and sound playing method - Google Patents
Portable electronic device and sound playing method Download PDFInfo
- Publication number
- TWI665662B TWI665662B TW107109909A TW107109909A TWI665662B TW I665662 B TWI665662 B TW I665662B TW 107109909 A TW107109909 A TW 107109909A TW 107109909 A TW107109909 A TW 107109909A TW I665662 B TWI665662 B TW I665662B
- Authority
- TW
- Taiwan
- Prior art keywords
- audio
- electronic device
- portable electronic
- playback
- ambient sound
- Prior art date
Links
Landscapes
- Telephone Function (AREA)
Abstract
一種可攜式電子裝置連接一耳機,所述可攜式電子裝置包括音訊播放模組及處理器,所述音訊播放模組輸出音訊至所述耳機播放,所述處理器收錄環境聲音並識別所述環境聲音中的特殊音訊,當所述處理器判斷所述環境聲音中出現所述特殊音訊時,所述音訊播放模組停止向所述耳機輸出所述音訊然後輸出所述環境聲音至所述耳機播放。還提供了一種音訊播放方法。 A portable electronic device is connected to a headset. The portable electronic device includes an audio playback module and a processor. The audio playback module outputs audio to the headset for playback. The processor records environmental sounds and identifies The special audio in the ambient sound, when the processor determines that the special audio appears in the ambient sound, the audio playback module stops outputting the audio to the headset and then outputs the ambient sound to the Headphones play. An audio playback method is also provided.
Description
本發明涉及一種可攜式電子裝置,尤其涉及一種針對環境變化而改變音訊播放的可攜式電子裝置及音訊播放方法。 The present invention relates to a portable electronic device, and in particular, to a portable electronic device and an audio playing method that change audio playing according to environmental changes.
一些可攜式電子裝置使用者喜歡通過耳機連接至可攜式電子裝置收聽其播放的音訊,如收聽音樂或通話。當用戶在室外環境中,若太投入耳機收聽的音訊,容易造成對周邊環境的警覺性降低,而使得危險係數增大。 Some portable electronic device users prefer to connect to a portable electronic device via headphones to listen to the audio they play, such as listening to music or talking. When the user is in an outdoor environment, if the user listens to the earphones too much, the alertness to the surrounding environment will be reduced, and the danger coefficient will increase.
有鑑於此,有必要提供一種針對環境變化而改變音訊播放的可攜式電子裝置。 In view of this, it is necessary to provide a portable electronic device that changes audio playback in response to environmental changes.
一種可攜式電子裝置連接一耳機,所述可攜式電子裝置包括音訊播放模組及處理器,所述音訊播放模組輸出音訊至所述耳機播放,所述處理器收錄環境聲音並識別所述環境聲音中的特殊音訊,當所述處理器判斷所述環境聲音中出現所述特殊音訊時,所述音訊播放模組停止向所述耳機輸出所述音訊然後輸出所述環境聲音至所述耳機播放。 A portable electronic device is connected to a headset. The portable electronic device includes an audio playback module and a processor. The audio playback module outputs audio to the headset for playback. The processor records environmental sounds and identifies The special audio in the ambient sound, when the processor determines that the special audio appears in the ambient sound, the audio playback module stops outputting the audio to the headset and then outputs the ambient sound to the Headphones play.
一種音訊播放方法,包括:輸出音訊至耳機播放;收錄環境聲音並識別所述環境聲音中的特殊音訊;及當判斷所述環境聲音中出現所述特殊音訊時,停止向所述耳 機輸出所述音訊,然後輸出所述環境聲音至所述耳機播放。 An audio playback method includes: outputting audio to a headset for playback; recording environmental sounds and identifying special audio among the environmental sounds; and stopping the earphones from being heard when the special audio appears in the environmental sounds The machine outputs the audio, and then outputs the ambient sound to the headset for playback.
本發明的音訊播放系統使用者通過耳機收聽音樂或通話時,可攜式電子裝置根據判斷環境聲音的特殊音訊,以暫停播放當前音訊,轉而輸出播放環境聲音,以提醒用戶留意當前環境,提升安全性。 When the user of the audio playback system of the present invention listens to music or calls through headphones, the portable electronic device pauses the current audio according to the special audio of the environmental sound, and then outputs the playback environmental sound to remind the user to pay attention to the current environment and improve safety.
1‧‧‧音訊播放系統 1‧‧‧Audio playback system
100‧‧‧可攜式電子裝置 100‧‧‧ Portable electronic device
10‧‧‧音訊播放模組 10‧‧‧Audio playback module
20‧‧‧定位模組 20‧‧‧ Positioning Module
40‧‧‧收音模組 40‧‧‧ radio module
50‧‧‧處理器 50‧‧‧ processor
200‧‧‧耳機 200‧‧‧ headphones
210‧‧‧揚聲器 210‧‧‧Speaker
220‧‧‧麥克風 220‧‧‧Microphone
圖1為本發明較佳實施例的音訊播放系統的功能模組圖。 FIG. 1 is a functional module diagram of an audio playback system according to a preferred embodiment of the present invention.
圖2為本發明較佳實施例的音訊播放方法的流程圖。 FIG. 2 is a flowchart of an audio playing method according to a preferred embodiment of the present invention.
請參閱圖1,本發明較佳實施例提供一音訊播放系統1包括可攜式電子裝置100及耳機200。所述可攜式電子裝置100與耳機200之間可建立無線通訊連接或有線連接。可以理解,當可攜式電子裝置100與耳機200之間通過有線連接時,耳機200可插入開設於可攜式電子裝置100的耳機介面。所述可攜式電子裝置100可為行動電話、平板電腦或PDA等。所述耳機200用於向用戶播放音訊。 Referring to FIG. 1, a preferred embodiment of the present invention provides an audio playback system 1 including a portable electronic device 100 and a headset 200. A wireless communication connection or a wired connection can be established between the portable electronic device 100 and the earphone 200. It can be understood that when the portable electronic device 100 and the earphone 200 are connected through a wire, the earphone 200 can be inserted into the earphone interface of the portable electronic device 100. The portable electronic device 100 may be a mobile phone, a tablet computer, or a PDA. The earphone 200 is used for playing audio to a user.
所述可攜式電子裝置100包括音訊播放模組10、定位模組20、收音模組40及處理器50。所述處理器50分別電性連接至各模組並處理各模組的資料及資訊。 The portable electronic device 100 includes an audio playback module 10, a positioning module 20, a radio receiving module 40 and a processor 50. The processor 50 is electrically connected to each module and processes data and information of each module.
所述音訊播放模組10用於播放音訊。當所述可攜式電子裝置100連接有耳機200時,所述音訊播放模組10向耳機輸出音訊。本實施例中,所述音訊播放模組10播放的音訊可以是音樂、語音資訊或語音通話等。 The audio playback module 10 is used to play audio. When the portable electronic device 100 is connected with the earphone 200, the audio playback module 10 outputs audio to the earphone. In this embodiment, the audio played by the audio playback module 10 may be music, voice information, or a voice call.
所述定位模組20用於判斷所述可攜式電子裝置100的位置。本實施例中,所述定位模組20可利用全球定位系統(Global Position System,GPS)、北斗定位系統或其他衛星定位系統以判斷所述可攜式電子裝置100 的位置。 The positioning module 20 is configured to determine a position of the portable electronic device 100. In this embodiment, the positioning module 20 may use a global positioning system (Global Position System, GPS), a Beidou positioning system, or other satellite positioning systems to determine the portable electronic device 100. s position.
所述收音模組40用於收錄環境聲音及收錄使用者語音。本實施例中,所述收音模組40可以為,但不限於為麥克風。 The radio module 40 is used for recording ambient sounds and user voices. In this embodiment, the sound receiving module 40 may be, but is not limited to, a microphone.
所述處理器50用於控制這些模組及處理這些模組的資料。所述處理器50控制所述收音模組40收錄環境聲音,識別所述環境聲音中的特殊音訊,並判斷所述環境聲音中是否出現所述特殊音訊。所述處理器50的識別包括聲音辨識及語音辨識。其中,所述聲音辨識的特殊音訊可以為,但不限於為,喇叭聲、急刹車聲、撞擊聲或尖叫聲等;所述語音辨識的特殊音訊可以為,但不限於為預設關鍵字,例如用戶名字或“借過”、“小心”等詞語的語音。所述處理器50控制音訊播放模組10輸出的音訊,及在必要時候控制音訊播放模組10輸出警示音訊。所述處理器50根據所述定位模組20提供的可攜式電子裝置100的位置,進一步判斷用戶當前是否在預設位置,如住處或辦公室;還根據所述可攜式電子裝置100的位置判斷可攜式電子裝置100的位置變化,以計算可攜式電子裝置100的移動速度,從而判斷使用者當前的運動狀態,如跑步或騎車。 The processor 50 is configured to control the modules and process data of the modules. The processor 50 controls the radio module 40 to record ambient sounds, recognizes special sounds in the ambient sounds, and determines whether the special sounds appear in the ambient sounds. The identification of the processor 50 includes voice recognition and voice recognition. The special audio for voice recognition may be, but is not limited to, a horn sound, a sudden brake sound, an impact sound or a scream, etc .; the special audio for voice recognition may be, but is not limited to, a preset keyword , Such as the user ’s name or the words "borrowed," "careful," and so on. The processor 50 controls the audio output by the audio playback module 10, and controls the audio playback module 10 to output a warning audio when necessary. The processor 50 further determines whether the user is currently in a preset position, such as a residence or an office, according to the position of the portable electronic device 100 provided by the positioning module 20; and also according to the position of the portable electronic device 100 A change in the position of the portable electronic device 100 is determined to calculate a moving speed of the portable electronic device 100, so as to determine a current movement state of the user, such as running or cycling.
所述耳機200至少包括揚聲器210及麥克風220。所述耳機200可拔插地連接至所述可攜式電子裝置100,並通過揚聲器210播放所述音訊播放模組10輸出的音訊。所述麥克風220用於收錄環境聲音及收錄使用者語音。 The earphone 200 includes at least a speaker 210 and a microphone 220. The earphone 200 is pluggably connected to the portable electronic device 100 and plays audio output by the audio playback module 10 through a speaker 210. The microphone 220 is used to record environmental sounds and user voices.
請參閱圖2,本發明較佳實施例的音訊播放系統1的音訊播放方法包括如下步驟: Referring to FIG. 2, the audio playing method of the audio playing system 1 according to a preferred embodiment of the present invention includes the following steps:
步驟01,所述可攜式電子裝置100接入耳機200,所述音訊播放模組10向耳機200輸出音訊,所述揚聲器210播放所述音訊。本實施例中,當所述可攜式電子裝置100在通話時,所述音訊為語音通話;當所述可攜 式電子裝置100在播放音樂時,所述音訊為音樂音訊。 In step 01, the portable electronic device 100 is connected to the earphone 200, the audio playback module 10 outputs audio to the earphone 200, and the speaker 210 plays the audio. In this embodiment, when the portable electronic device 100 is in a call, the audio is a voice call; when the portable electronic device 100 is in a call, When the electronic device 100 is playing music, the audio is music audio.
步驟02,所述定位模組20判斷所述可攜式電子裝置100的位置。 In step 02, the positioning module 20 determines the position of the portable electronic device 100.
步驟03,所述處理器50根據所述位置判斷所述可攜式電子裝置100是否位於預設位置,如用戶住處或辦公室。當處理器50判斷用戶當前在預設位置時,執行步驟06;當處理器50判斷用戶當前不在預設位置時,執行步驟05。 In step 03, the processor 50 determines whether the portable electronic device 100 is located at a preset position, such as a user's residence or office, according to the location. When the processor 50 determines that the user is currently at the preset position, execute step 06; when the processor 50 determines that the user is not currently at the preset position, execute step 05.
步驟04,所述處理器50根據所述可攜式電子裝置100的位置變化計算所述可攜式電子裝置100的移動速度。 In step 04, the processor 50 calculates a moving speed of the portable electronic device 100 according to a position change of the portable electronic device 100.
步驟05,所述處理器50判斷所述移動速度是否位於預設範圍內。所述預設範圍對應所述可攜式電子裝置100的使用者當前的運動狀態,如走路、跑步或騎車。可以理解,不同的運動狀態可對應不同的預設範圍。若判斷所述移動速度位於所述預設範圍內,則用戶正處於所述運動狀態,執行步驟06;否則返回執行步驟02。 In step 05, the processor 50 determines whether the moving speed is within a preset range. The preset range corresponds to the current exercise state of the user of the portable electronic device 100, such as walking, running, or cycling. It can be understood that different exercise states may correspond to different preset ranges. If it is determined that the moving speed is within the preset range, the user is in the motion state, and step 06 is performed; otherwise, return to step 02.
步驟06,所述收音模組40或麥克風220收錄環境聲音,所述處理器50識別環境聲音中的所述特殊音訊。可以理解,可由所述收音模組40和麥克風220其中之一或兩者同時進行收錄環境聲音。當所述可攜式電子裝置100處於通話狀態時,可通過收音模組40收錄環境聲音,通過麥克風220接收使用者通話語音。可以理解,當所述處理器50判斷所述環境聲音中未出現所述特殊音訊時,所述音訊播放模組10繼續輸出當前音訊至所述耳機200播放。 In step 06, the radio module 40 or the microphone 220 records ambient sounds, and the processor 50 identifies the special audio in the ambient sounds. It can be understood that ambient sound can be recorded by one or both of the radio module 40 and the microphone 220 at the same time. When the portable electronic device 100 is in a call state, ambient sound can be recorded by the radio module 40, and the user's call voice can be received through the microphone 220. It can be understood that when the processor 50 determines that the special audio does not appear in the ambient sound, the audio playback module 10 continues to output the current audio to the headset 200 for playback.
步驟07,所述處理器50判斷所述環境聲音中是否出現所述特殊音訊。若判斷出現所述特殊音訊,則執行步驟08;否則返回執行步驟02。 In step 07, the processor 50 determines whether the special audio appears in the ambient sound. If it is determined that the special audio occurs, step 08 is performed; otherwise, return to step 02.
步驟08,所述處理器50控制所述音訊播放模組10停止播放音訊。 In step 08, the processor 50 controls the audio playback module 10 to stop playing audio.
步驟09,所述音訊播放模組10向所述耳機200輸出一警示音訊,所述耳機200通過揚聲器210播放所述警示音訊以提醒用戶注意。 In step 09, the audio playback module 10 outputs a warning audio to the earphone 200, and the earphone 200 plays the warning audio through the speaker 210 to remind the user to pay attention.
步驟11,所述可攜式電子裝置100將收音模組40收錄的環境聲音輸出至所述耳機200,所述揚聲器210播放所述環境聲音。本實施例中,所述可攜式電子裝置100處於通話狀態時,可通過所述收音模組40收錄所述環境聲音,通過所述麥克風220收錄使用者通話語音。 In step 11, the portable electronic device 100 outputs the ambient sound recorded by the radio module 40 to the earphone 200, and the speaker 210 plays the ambient sound. In this embodiment, when the portable electronic device 100 is in a call state, the ambient sound can be recorded through the radio module 40, and the user's call voice can be recorded through the microphone 220.
步驟12,所述耳機200通過麥克風220收錄環境聲音,所述揚聲器210播放所述環境聲音。 In step 12, the earphone 200 records the ambient sound through the microphone 220, and the speaker 210 plays the ambient sound.
可以理解,步驟11及12為兩個實施例的執行方式,所述耳機200既可通過所述收音模組40又可通過所述麥克風220收錄環境聲音,並通過揚聲器210播放所述環境聲音。 It can be understood that steps 11 and 12 are the implementation manners of the two embodiments. The earphone 200 can record the ambient sound through the radio module 40 and the microphone 220, and play the ambient sound through the speaker 210.
在另一實施例中,步驟02、03、04及05可以省略,即所述揚聲器210在播放音訊時,所述收音模組40或麥克風220直接收錄環境聲音,而無需判斷用戶當前位置及當前運動狀態。 In another embodiment, steps 02, 03, 04, and 05 can be omitted, that is, when the speaker 210 is playing audio, the radio module 40 or the microphone 220 directly records ambient sounds without judging the user's current position and current State of motion.
可以理解,所述可攜式電子裝置100存儲有所述特殊音訊的資料。所述處理器50通過將環境聲音與存儲的特殊音訊資料對比,以識別並判斷出這些特殊音訊。 It can be understood that the portable electronic device 100 stores the special audio data. The processor 50 compares the ambient sound with the stored special audio data to identify and determine the special audio.
本發明的音訊播放系統1使用者通過耳機200收聽音樂或通話時,可攜式電子裝置100根據判斷環境聲音的特殊音訊,以暫停播放當前音訊,轉而輸出播放環境聲音,以提醒用戶留意當前環境,提升安全性。 When a user of the audio playback system 1 of the present invention listens to music or a call through the headset 200, the portable electronic device 100 pauses the current audio according to the special audio of the environmental sound, and then outputs the playback environmental sound to remind the user to pay attention to the current Environment and improve safety.
綜上所述,儘管為說明目的已經公開了本發明的優選實施例,然而,本發明不只局限於如上所述的實施例,在不超出本發明基本技術思 想的範疇內,相關行業的技術人員可對其進行多種變形及應用。 In summary, although the preferred embodiments of the present invention have been disclosed for illustrative purposes, the present invention is not limited to the embodiments described above, without exceeding the basic technical idea of the present invention. Within the desired range, technicians in related industries can perform various deformations and applications.
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW107109909A TWI665662B (en) | 2018-03-22 | 2018-03-22 | Portable electronic device and sound playing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW107109909A TWI665662B (en) | 2018-03-22 | 2018-03-22 | Portable electronic device and sound playing method |
Publications (2)
Publication Number | Publication Date |
---|---|
TWI665662B true TWI665662B (en) | 2019-07-11 |
TW201941187A TW201941187A (en) | 2019-10-16 |
Family
ID=68049556
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW107109909A TWI665662B (en) | 2018-03-22 | 2018-03-22 | Portable electronic device and sound playing method |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI665662B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112995844A (en) * | 2021-02-26 | 2021-06-18 | 歌尔科技有限公司 | Sound playing method and sound playing device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100191536A1 (en) * | 2009-01-29 | 2010-07-29 | Qualcomm Incorporated | Audio coding selection based on device operating condition |
TW201138491A (en) * | 2010-04-23 | 2011-11-01 | Pi-Fen Lin | Wireless earphone with dual-mode communication |
TW201142583A (en) * | 2010-05-28 | 2011-12-01 | Inst Information Industry | Power saving method of mobile device and communication system thereof |
-
2018
- 2018-03-22 TW TW107109909A patent/TWI665662B/en active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100191536A1 (en) * | 2009-01-29 | 2010-07-29 | Qualcomm Incorporated | Audio coding selection based on device operating condition |
TW201138491A (en) * | 2010-04-23 | 2011-11-01 | Pi-Fen Lin | Wireless earphone with dual-mode communication |
TW201142583A (en) * | 2010-05-28 | 2011-12-01 | Inst Information Industry | Power saving method of mobile device and communication system thereof |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112995844A (en) * | 2021-02-26 | 2021-06-18 | 歌尔科技有限公司 | Sound playing method and sound playing device |
Also Published As
Publication number | Publication date |
---|---|
TW201941187A (en) | 2019-10-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8909537B2 (en) | Device capable of playing music and method for controlling music playing in electronic device | |
US10720153B2 (en) | Name-sensitive listening device | |
US10817251B2 (en) | Dynamic capability demonstration in wearable audio device | |
US9105187B2 (en) | Method and apparatus for providing information about the source of a sound via an audio device | |
US9509269B1 (en) | Ambient sound responsive media player | |
JP2004526375A (en) | Active noise canceling headphones and apparatus for selectively suppressing noise | |
US9479872B2 (en) | Audio reproducing method and apparatus | |
JP2017514392A (en) | User terminal and method and apparatus for adjusting volume of terminal | |
US11467666B2 (en) | Hearing augmentation and wearable system with localized feedback | |
WO2021159369A1 (en) | Hearing aid method and apparatus for noise reduction, chip, earphone and storage medium | |
WO2022227655A1 (en) | Sound playing method and apparatus, and electronic device and readable storage medium | |
US11228828B2 (en) | Alerting users to events | |
CN113038337B (en) | Audio playing method, wireless earphone and computer readable storage medium | |
CN107613113A (en) | A kind of headset mode control method, device and computer-readable recording medium | |
WO2021161722A1 (en) | Information processing device, information processing method, information processing program, and information processing system | |
CN110691300A (en) | Audio playing device and method for providing information | |
CN111491236A (en) | Active noise reduction earphone, awakening method and device thereof and readable storage medium | |
KR20200045311A (en) | Method and device that automatically adjust the volume depending on the situation | |
TWI665662B (en) | Portable electronic device and sound playing method | |
CN110719545B (en) | Audio playing device and method for playing audio | |
WO2015030642A1 (en) | Volume reduction for an electronic device | |
CN112102829A (en) | Player control system and method based on voice recognition | |
CN208079373U (en) | Audio frequency broadcast system, mobile terminal, WiFi earphones | |
CN111385701A (en) | Sound playing control method and device of earphone | |
CN110297615A (en) | Portable electronic device and audio frequency playing method |