WO2018058901A1 - Audio playing method and device, and terminal - Google Patents

Audio playing method and device, and terminal Download PDF

Info

Publication number
WO2018058901A1
WO2018058901A1 PCT/CN2017/076302 CN2017076302W WO2018058901A1 WO 2018058901 A1 WO2018058901 A1 WO 2018058901A1 CN 2017076302 W CN2017076302 W CN 2017076302W WO 2018058901 A1 WO2018058901 A1 WO 2018058901A1
Authority
WO
WIPO (PCT)
Prior art keywords
audio
user
terminal
audio file
geographic location
Prior art date
Application number
PCT/CN2017/076302
Other languages
French (fr)
Chinese (zh)
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 珠海格力电器股份有限公司
Publication of WO2018058901A1 publication Critical patent/WO2018058901A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/165Management of the audio stream, e.g. setting of volume, audio stream path

Definitions

  • Embodiments of the present invention relate to the field of audio playback control technologies, and in particular, to an audio playback method, apparatus, and terminal.
  • the application of the existing terminal is endless, and an audio player is installed on the general terminal, and the user can use the audio player to play the audio file.
  • Most existing audio players can only play related types of audio according to the user's settings, or push the user's favorite audio according to the user's playing habits.
  • the existing audio playback method is relatively simple and cannot meet the needs of users.
  • the invention provides an audio playing method, device and terminal for optimizing an existing audio playing method and providing an intelligent audio playing method.
  • an embodiment of the present invention provides an audio playing method, where the method includes:
  • the playback of the audio is controlled according to the geographic location and user status.
  • the embodiment of the present invention further provides an audio playback device, where the device includes: a location and status acquisition module, configured to acquire a geographic location and a user state to which the terminal belongs when the audio play event is triggered;
  • the audio play control module is configured to control the playing of the audio according to the geographic location and the user state.
  • an embodiment of the present invention further provides a terminal, where the terminal includes any implementation of the present invention.
  • the audio playback device in the example includes any implementation of the present invention.
  • the geographic location and the user state to which the terminal belongs are acquired, and the audio playback is controlled according to the geographic location and the user state.
  • the audio file that matches the user's state can be accurately played.
  • the audio playback method provided by the embodiment of the present invention can better meet the needs of the user, and the user experience is higher.
  • FIG. 1 is a schematic flowchart of an audio playing method according to Embodiment 1 of the present invention.
  • FIG. 2 is a schematic flowchart of an audio playing method according to Embodiment 2 of the present invention.
  • FIG. 3 is a schematic flowchart of an audio playing method according to Embodiment 3 of the present invention.
  • FIG. 4 is a schematic structural diagram of an audio playback device according to Embodiment 4 of the present invention.
  • FIG. 1 is a schematic flowchart diagram of an audio playing method according to Embodiment 1 of the present invention.
  • This embodiment is applicable to a case where a user plays an audio file using a terminal, and the method can be performed by an audio playback device, and the device can be implemented by hardware and/or software.
  • the audio playing method provided in this embodiment includes:
  • the audio play event on the terminal When the audio play event on the terminal is triggered, for example, when the audio play button of the audio play software in the terminal is pressed, the audio play event will be triggered, and the terminal will monitor this event.
  • the geographic location and user status described by the terminal can be obtained.
  • the location system on the terminal can be obtained through the positioning system on the terminal, and the geographic location to which the terminal belongs can be obtained through the GPS positioning system, and the state of the user is obtained through the sensor on the terminal.
  • the speed and acceleration of the terminal are acquired by the speed sensor and the acceleration sensor on the terminal, and whether the user is in a stationary state or a moving state is determined according to the speed and acceleration of the terminal.
  • S120 Control audio playback according to geographic location and user status.
  • the audio playback can be controlled according to the geographic location and user status to which the terminal belongs. Specifically, after acquiring the geographic location to which the terminal belongs, the music file associated with the current geographic location may be determined. For example, the geographical location obtained is “Xi'an, Huaqing Pool”, and the music file “Chaiya Drunken” associated with “Xi'an, Huaqing Pool” can be obtained. Then, the music file is pushed to the user, or the first music is directly played when the next music file is switched. For example, the location obtained near the location of “Tianjin, Drum Tower” can be used to obtain the cross talk related to the Drum Tower Teahouse and play a cross talk.
  • a song whose lyrics are associated with a geographical location for example, a song whose lyrics contain a geographical name.
  • a plurality of audio files related to the location may be determined according to the geographic location to which the terminal belongs.
  • one of the audio files may be selected for playing according to the user state. For example, the current user is in an excited state, and a relatively aggressive music file can be selected from a plurality of determined audio files, for example, from a plurality of music files for playing.
  • a relatively soothing music file can be selected from a plurality of music files for playback.
  • the user can hear the audio file associated with the geographic location and match the user status in different geographical locations, and it is easier to meet the needs of the user.
  • the related audio file may be obtained locally, or the audio file of the related type may be obtained locally from the terminal, or the related type of audio file may be obtained from the server, for example, from the cloud music database. .
  • the geographic location and the user state to which the terminal belongs are acquired, and the playing of the audio is controlled according to the geographic location and the user state.
  • the audio matching the user's state can be accurately played to the user, and the provided audio playing method can better meet the user's needs, and the user experience is higher.
  • FIG. 2 is a schematic flowchart diagram of an audio playing method according to Embodiment 2 of the present invention. This embodiment performs an optimization operation based on the first embodiment described above.
  • the audio playing method provided in this embodiment includes:
  • a first audio file associated with the introduction information of the geographic location may be acquired.
  • the geographic location to which the terminal belongs is a park
  • the introduction information of the park is famous for the lotus flower, so that music files such as “Holly Pond Moonlight” and “Blue Lotus” associated with the introduction information can be obtained.
  • the song file containing the geographic location in the lyrics may be acquired, or the song file including the text corresponding to the geographic location introduction information in the lyrics may be acquired.
  • the geographic location and audio files associated with the geographic location are also stored in the database and mapped in the database. After the geographic location is obtained, the audio file associated with the geographic location can be quickly found according to the mapping relationship between the two.
  • the second audio file corresponding to the heart rate state and/or the motion state of the user is an audio file that matches the heart rate state and/or the motion state of the user.
  • a music file of a more exciting type may be selected from the first audio file, when the user's heart rate is less than or equal to the set threshold.
  • a music file of a radical type can be selected from the first audio file
  • a music file of a quiet type can be selected from the first audio file.
  • the corresponding type of music file can also be selected according to the user's heart rate state and motion state.
  • the next audio file is switched, for example, according to the user's setting, the next audio file is switched, or after the current audio file is played, the next audio file can be switched.
  • One of the two audio files is randomly selected for playback, and if there is only one second audio file, the second audio file is played. If the first audio file is not matched, the audio file is switched and played according to the default audio file when the audio file is switched.
  • the volume of the second audio file played by the terminal may also be adjusted according to the heart rate state and/or the motion state of the user. For example, suppose the volume value of the terminal is in the range of 1-10. When the user's heart rate value is 65, the volume value can be adjusted to 6, and when the user's heart rate value is 75, the volume value can be adjusted to 6.5.
  • the range of the volume value is adjusted to be 2-8. That is, when the volume value is adjusted according to the user's heart rate, the volume can be adjusted to a minimum of 2 and the maximum can be adjusted to 8.
  • the volume of the second audio file played by the terminal can also be adjusted according to the motion state of the user. For example, when the user is in motion, the volume value is adjusted to 8, and when the user is at rest, the volume value is adjusted to 6.
  • the volume can also be adjusted according to the user's heart rate and exercise state.
  • the playing of the audio file can be directly turned off.
  • the audio file matching the current state of the user is filtered from the determined audio file according to the heart rate and/or the motion state of the user, and the played audio file is played. It can better meet the needs of users, and when playing audio files, the volume of the terminal can be adjusted according to the state of the user, which improves the user's experience of listening to audio files.
  • FIG. 3 is a schematic flowchart of an audio playing method according to Embodiment 3 of the present invention. This embodiment performs an optimization operation based on the second embodiment described above.
  • the audio playing method provided in this embodiment includes:
  • the heart rate state of the user is periodically obtained through a heart rate sensor on the terminal or on the earphone.
  • the heart rate sensor built in the terminal is synchronously turned on, and the user can obtain the heart rate state of the user through the heart rate sensor on the terminal in the state of the handheld terminal.
  • the earphone detected by the terminal is inserted, the heart rate sensor on the earphone is activated, and the heart rate state of the user can be obtained through the sensor on the earphone.
  • the terminal controls the heart rate sensor to turn on heart rate monitoring and periodically acquires the user's heart rate value.
  • S320 Periodically acquire a motion state of the user by using an acceleration sensor on the terminal.
  • the heart rate state and the motion state of the user can be acquired in a cycle of 10 s.
  • S360 randomly playing one of the second audio files when the audio file is switched and played.
  • the currently playing music can be turned off when it is detected that the heart rate is below a relatively low frequency threshold for a long time.
  • the technical solution provided by the embodiment can obtain the heart rate of the user through the heart rate sensor built in the terminal or the heart rate sensor on the earphone, and obtain the motion state of the user through the acceleration sensor, which can accurately detect the state of the user, is convenient to operate, and plays and User files match the audio file to improve the user experience of listening to audio files.
  • FIG. 4 is a schematic structural diagram of an audio playback device according to Embodiment 4 of the present invention.
  • the apparatus includes:
  • the location and status obtaining module 410 is configured to: when the audio play event is triggered, acquire the geographic location and the user status to which the terminal belongs;
  • the audio play control module 420 is configured to control the playing of the audio according to the geographic location and the user state.
  • the user status includes a heart rate status and a motion status of the user.
  • the audio play control module 420 includes:
  • the audio file determining unit 421 is configured to determine a first audio file associated with the geographic location
  • the audio file selecting unit 422 is configured to select, from the first audio file, a second audio file corresponding to a heart rate state and/or a motion state of the user;
  • the audio file playing unit 423 is configured to randomly play one of the second audio files when the audio file is switched and played.
  • the audio play control module 420 further includes:
  • the volume adjustment unit 424 is configured to adjust the volume of the second audio file played by the terminal according to the heart rate state and/or the motion state of the user after randomly playing one of the second audio files.
  • the audio file determining unit 421 is specifically configured to:
  • the location and status acquisition module 410 includes:
  • the heart rate state obtaining unit 411 is configured to periodically acquire the heart rate state of the user through a heart rate sensor on the terminal or on the earphone when the audio play event is triggered;
  • the motion state acquiring unit 412 is configured to periodically acquire the motion state of the user by using an acceleration sensor on the terminal.
  • the above device can perform the audio playing method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the executing method.
  • An embodiment of the present invention further provides a terminal, where the terminal includes an audio playback device in any embodiment of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

Disclosed are an audio playing method and device, and a terminal. The method comprises: when it is monitored that an audio play event is triggered, acquiring a geographic position where a terminal is located and a user state (S110), and controlling the audio play according to the geographic position and the user state (S120). The present invention can play an audio file matching the user state, thereby improving the user experience.

Description

一种音频播放方法、装置和终端Audio playing method, device and terminal
本申请要求于2016年09月28日提交中国专利局、申请号为201610861254.1、发明名称为“一种音频播放方法、装置和终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201610861254.1, entitled "Audio Playback Method, Apparatus, and Terminal" on September 28, 2016, the entire contents of which are incorporated herein by reference. In the application.
技术领域Technical field
本发明实施例涉及音频播放控制技术领域,尤其涉及一种音频播放方法、装置和终端。Embodiments of the present invention relate to the field of audio playback control technologies, and in particular, to an audio playback method, apparatus, and terminal.
背景技术Background technique
现有终端的应用层出不穷,一般终端上都安装有音频播放器,用户可使用音频播放器播放音频文件。The application of the existing terminal is endless, and an audio player is installed on the general terminal, and the user can use the audio player to play the audio file.
现有大多数音频播放器只能根据用户的设置播放相关类型的音频,或者根据用户的播放习惯来推送用户喜欢的音频。Most existing audio players can only play related types of audio according to the user's settings, or push the user's favorite audio according to the user's playing habits.
用户对于音乐播放器的智能化要求也越来越高。现有音频播放方法比较简单,无法满足用户的需求。Users are increasingly demanding the intelligence of music players. The existing audio playback method is relatively simple and cannot meet the needs of users.
发明内容Summary of the invention
本发明提供一种音频播放方法、装置和终端,以优化现有音频播放的方法,提供智能化的音频播放方法。The invention provides an audio playing method, device and terminal for optimizing an existing audio playing method and providing an intelligent audio playing method.
第一方面,本发明实施例提供了一种音频播放方法,该方法包括:In a first aspect, an embodiment of the present invention provides an audio playing method, where the method includes:
监测到音频播放事件触发时,获取终端所属的地理位置和用户状态;Obtaining the geographic location and user status of the terminal when the audio play event is triggered;
根据所述地理位置和用户状态控制音频的播放。The playback of the audio is controlled according to the geographic location and user status.
第二方面,本发明实施例还提供了一种音频播放装置,该装置包括:位置和状态获取模块,用于监测到音频播放事件触发时,获取终端所属的地理位置和用户状态;In a second aspect, the embodiment of the present invention further provides an audio playback device, where the device includes: a location and status acquisition module, configured to acquire a geographic location and a user state to which the terminal belongs when the audio play event is triggered;
音频播放控制模块,用于根据所述地理位置和用户状态控制音频的播放。The audio play control module is configured to control the playing of the audio according to the geographic location and the user state.
第三方面,本发明实施例还提供了一种终端,该终端包括本发明任意实施 例中的音频播放装置。In a third aspect, an embodiment of the present invention further provides a terminal, where the terminal includes any implementation of the present invention. The audio playback device in the example.
本发明实施例在监测到音频播放事件触发时,获取终端所属的地理位置和用户状态,根据所述地理位置和用户状态控制音频的播放。可准确地播放与用户状态匹配的音频文件,本发明实施例提供的音频播放方法更能满足用户的需求,用户体验更高。In the embodiment of the present invention, when the triggering of the audio play event is triggered, the geographic location and the user state to which the terminal belongs are acquired, and the audio playback is controlled according to the geographic location and the user state. The audio file that matches the user's state can be accurately played. The audio playback method provided by the embodiment of the present invention can better meet the needs of the user, and the user experience is higher.
附图说明DRAWINGS
图1是本发明实施例一提供的一种音频播放方法的流程示意图;1 is a schematic flowchart of an audio playing method according to Embodiment 1 of the present invention;
图2是本发明实施例二提供的一种音频播放方法的流程示意图;2 is a schematic flowchart of an audio playing method according to Embodiment 2 of the present invention;
图3是本发明实施例三提供的一种音频播放方法的流程示意图;3 is a schematic flowchart of an audio playing method according to Embodiment 3 of the present invention;
图4是本发明实施例四提供的一种音频播放装置的结构示意图。4 is a schematic structural diagram of an audio playback device according to Embodiment 4 of the present invention.
具体实施方式detailed description
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. It should also be noted that, for ease of description, only some, but not all, of the structures related to the present invention are shown in the drawings.
实施例一Embodiment 1
图1为本发明实施例一提供的一种音频播放方法的流程示意图。本实施例可适用于用户使用终端播放音频文件的情况,该方法可以由音频播放装置来执行,所述装置可由硬件和/或软件实现。参见图1,本实施例提供的音频播放方法包括:FIG. 1 is a schematic flowchart diagram of an audio playing method according to Embodiment 1 of the present invention. This embodiment is applicable to a case where a user plays an audio file using a terminal, and the method can be performed by an audio playback device, and the device can be implemented by hardware and/or software. Referring to FIG. 1, the audio playing method provided in this embodiment includes:
S110、监测到音频播放事件触发时,获取终端所属的地理位置和用户状态。S110. When the audio play event is triggered, the geographic location and the user status of the terminal are obtained.
监测到终端上的音频播放事件触发时,例如终端中的音频播放软件的音频播放按钮被按下时,音频播放事件会被触发,此时终端会监测到此事件,此时 可获取终端所述的地理位置和用户状态。可以通过终端上的定位系统,具体可通过GPS定位系统获取终端所属的地理位置,通过终端上的传感器获取用户的状态。例如通过终端上的速度传感器和加速度传感器获取终端的速度和加速度,根据终端的速度和加速度确定用户的是处于静止状态还是处于移动状态。When the audio play event on the terminal is triggered, for example, when the audio play button of the audio play software in the terminal is pressed, the audio play event will be triggered, and the terminal will monitor this event. The geographic location and user status described by the terminal can be obtained. The location system on the terminal can be obtained through the positioning system on the terminal, and the geographic location to which the terminal belongs can be obtained through the GPS positioning system, and the state of the user is obtained through the sensor on the terminal. For example, the speed and acceleration of the terminal are acquired by the speed sensor and the acceleration sensor on the terminal, and whether the user is in a stationary state or a moving state is determined according to the speed and acceleration of the terminal.
S120、根据地理位置和用户状态控制音频的播放。S120. Control audio playback according to geographic location and user status.
在获取终端所属的地理位置和用户状态之后,可以根据终端所属的地理位置和用户状态控制音频的播放。具体地,在获取终端所属的地理位置后,可确定与当前地理位置关联的音乐文件。例如获取的地理位置为“西安,华清池”,可获取与“西安,华清池”关联的音乐文件“贵妃醉酒”。然后,将该音乐文件推送给用户,或者在切换播放下一首音乐文件时,直接播放该首音乐。例如获取的地理位置为“天津,鼓楼”附近的位置,可以将获取鼓楼茶馆相关的相声,播放其中的一曲相声。在获取音乐文件时,具体可以获取歌词与地理位置关联的歌曲,例如,获取歌词包含地理位置名称的歌曲。在获取终端所属的地理位置之后,一般可根据终端所属的地理位置确定与该位置相关的多个音频文件,此时可以根据用户状态选择其中的一个音频文件进行播放。例如当前用户处于亢奋的状态,可以从确定的多个音频文件,例如从多个音乐文件中选择比较激进的音乐文件进行播放。当用户处于平静的状态时,可以从多个音乐文件中选择比较舒缓的音乐文件进行播放。这样,用户在不同的地理位置可以听到与该地理位置关联并且与用户状态匹配的音频文件,比较容易满足用户的需求。需要说明的是,根据终端所述的地理位置和用户状态获取相关音频文件的过程,具体可以从终端本地获取相关类型的音频文件,也可以从服务器,例如从云端音乐数据库获取相关类型的音频文件。 After obtaining the geographic location and user status to which the terminal belongs, the audio playback can be controlled according to the geographic location and user status to which the terminal belongs. Specifically, after acquiring the geographic location to which the terminal belongs, the music file associated with the current geographic location may be determined. For example, the geographical location obtained is “Xi'an, Huaqing Pool”, and the music file “Chaiya Drunken” associated with “Xi'an, Huaqing Pool” can be obtained. Then, the music file is pushed to the user, or the first music is directly played when the next music file is switched. For example, the location obtained near the location of “Tianjin, Drum Tower” can be used to obtain the cross talk related to the Drum Tower Teahouse and play a cross talk. When acquiring a music file, it is possible to obtain a song whose lyrics are associated with a geographical location, for example, a song whose lyrics contain a geographical name. After obtaining the geographic location to which the terminal belongs, a plurality of audio files related to the location may be determined according to the geographic location to which the terminal belongs. At this time, one of the audio files may be selected for playing according to the user state. For example, the current user is in an excited state, and a relatively aggressive music file can be selected from a plurality of determined audio files, for example, from a plurality of music files for playing. When the user is in a calm state, a relatively soothing music file can be selected from a plurality of music files for playback. In this way, the user can hear the audio file associated with the geographic location and match the user status in different geographical locations, and it is easier to meet the needs of the user. It should be noted that, according to the geographic location and the user status of the terminal, the related audio file may be obtained locally, or the audio file of the related type may be obtained locally from the terminal, or the related type of audio file may be obtained from the server, for example, from the cloud music database. .
本实施例提供的技术方案,通过监测到音频播放事件触发时,获取终端所属的地理位置和用户状态,根据所述地理位置和用户状态控制音频的播放。可准确地向用户播放与用户状态匹配的音频,提供的音频播放方法更能满足用户的需求,用户体验更高。In the technical solution provided by the embodiment, when the triggering of the audio play event is triggered, the geographic location and the user state to which the terminal belongs are acquired, and the playing of the audio is controlled according to the geographic location and the user state. The audio matching the user's state can be accurately played to the user, and the provided audio playing method can better meet the user's needs, and the user experience is higher.
实施例二Embodiment 2
图2是本发明实施例二提供的一种音频播放方法的流程示意图。本实施例是在上述实施例一的基础上进行了优化操作。参见图2,本实施例提供的音频播放方法包括:FIG. 2 is a schematic flowchart diagram of an audio playing method according to Embodiment 2 of the present invention. This embodiment performs an optimization operation based on the first embodiment described above. Referring to FIG. 2, the audio playing method provided in this embodiment includes:
S210、监测到音频播放事件触发时,获取终端所属的地理位置和用户状态,其中,用户状态包括用户的心率状态和运动状态。S210. Acquire, when the audio play event is triggered, obtain a geographic location and a user state to which the terminal belongs, where the user state includes a heart rate state and a motion state of the user.
S220、确定与地理位置关联的第一音频文件。S220. Determine a first audio file associated with the geographic location.
具体地,可以获取与地理位置的介绍信息关联的第一音频文件。例如,获取终端所属的地理位置为一公园,对该公园的介绍信息为因荷花出名,因此可获取与该介绍信息关联的“荷塘月色”和“蓝莲花”等音乐文件。Specifically, a first audio file associated with the introduction information of the geographic location may be acquired. For example, the geographic location to which the terminal belongs is a park, and the introduction information of the park is famous for the lotus flower, so that music files such as “Holly Pond Moonlight” and “Blue Lotus” associated with the introduction information can be obtained.
或者,获取文字内容与地理位置关联的第一音频文件。例如在获取终端所属的地理位置之后,可以获取歌词中包含该地理位置的歌曲文件,或者获取歌词中包括该地理位置介绍信息对应的文字的歌曲文件。Or, obtain a first audio file whose text content is associated with a geographic location. For example, after acquiring the geographic location to which the terminal belongs, the song file containing the geographic location in the lyrics may be acquired, or the song file including the text corresponding to the geographic location introduction information in the lyrics may be acquired.
在本实施例中,也在在数据库中存储地理位置和与地理位置关联的音频文件,并在数据库中将二者进行映射。在获取到地理位置之后,可以根据二者的映射关系快速查找到与地理位置关联的音频文件。In this embodiment, the geographic location and audio files associated with the geographic location are also stored in the database and mapped in the database. After the geographic location is obtained, the audio file associated with the geographic location can be quickly found according to the mapping relationship between the two.
S230、从第一音频文件中选择与用户的心率状态和/或运动状态对应的第二音频文件。 S230. Select a second audio file corresponding to the heart rate state and/or the motion state of the user from the first audio file.
其中,与用户的心率状态和/或运动状态对应的第二音频文件即是用户的心率状态和/或运动状态匹配的音频文件。具体地,当用户的心率值大于设定阈值时,说明用户此时相对兴奋,可以从第一音频文件中选择比较令人兴奋的类型的音乐文件,当用户的心率小于等于设定阈值时,可以获取一些舒缓类型的音乐文件。例如当心率大于75时,可以从第一音频文件中选择摇滚类型的音乐文件。当用户处于运动状态时,可以从第一音频文件中选择激进亢奋类型的音乐文件,当用户处于静止状态时,可从第一音频文件中选择安静类型的音乐文件。也可根据用户的心率状态和运动状态综合选择相应类型的音乐文件。The second audio file corresponding to the heart rate state and/or the motion state of the user is an audio file that matches the heart rate state and/or the motion state of the user. Specifically, when the user's heart rate value is greater than the set threshold, indicating that the user is relatively excited at this time, a music file of a more exciting type may be selected from the first audio file, when the user's heart rate is less than or equal to the set threshold. You can get some soothing types of music files. For example, when the heart rate is greater than 75, a rock type music file can be selected from the first audio file. When the user is in a motion state, a music file of a radical type can be selected from the first audio file, and when the user is at a standstill, a music file of a quiet type can be selected from the first audio file. The corresponding type of music file can also be selected according to the user's heart rate state and motion state.
S240、在音频文件切换播放时,随机播放其中一个第二音频文件。S240. Randomly play one of the second audio files when the audio file is switched and played.
选择确定第二音频文件后,在音频文件切换播放时,例如根据用户的设置切换播放下一音频文件或者在播放完当前音频文件后进行切换播放下一音频文件时,可以从筛选的多个第二音频文件中随机选择一个进行播放,如果只有一个第二音频文件,则播放该第二音频文件。如果未匹配到第一音频文件,则在音频文件切换播放时,按照默认的音频文件进行切换播放。After selecting the second audio file, when the audio file is switched, for example, according to the user's setting, the next audio file is switched, or after the current audio file is played, the next audio file can be switched. One of the two audio files is randomly selected for playback, and if there is only one second audio file, the second audio file is played. If the first audio file is not matched, the audio file is switched and played according to the default audio file when the audio file is switched.
在本实施例中的另一种实施方式中,在随机播放其中一个所述第二音频文件之后,还可根据用户的心率状态和/或运动状态调节终端播放所述第二音频文件的音量。例如,假设终端的音量值范围为1-10,当用户的心率值为65时,可将音量值调整为6,当用户的心率值为75时,可将音量值调整为6.5。可选的,调整音量值的区间范围为2-8。即根据用户的心率调整音量值时,音量最小能调整到2,最大能调整到8。还可根据用户的运动状态调节终端播放第二音频文件的音量。例如,在用户处于运动状态时,将音量值调整为8,当用户处于静止状态时,将音量值调整为6。也可根据用户的心率和运动状态综合调整音量。 In another embodiment of the present embodiment, after one of the second audio files is randomly played, the volume of the second audio file played by the terminal may also be adjusted according to the heart rate state and/or the motion state of the user. For example, suppose the volume value of the terminal is in the range of 1-10. When the user's heart rate value is 65, the volume value can be adjusted to 6, and when the user's heart rate value is 75, the volume value can be adjusted to 6.5. Optionally, the range of the volume value is adjusted to be 2-8. That is, when the volume value is adjusted according to the user's heart rate, the volume can be adjusted to a minimum of 2 and the maximum can be adjusted to 8. The volume of the second audio file played by the terminal can also be adjusted according to the motion state of the user. For example, when the user is in motion, the volume value is adjusted to 8, and when the user is at rest, the volume value is adjusted to 6. The volume can also be adjusted according to the user's heart rate and exercise state.
在本实施例中,若监测到用户的心率值低于设定频率阈值,并且心率值低于设定频率阈值的时间超过第一设定时间阈值时,可以直接关闭音频文件的播放。In this embodiment, if it is detected that the heart rate value of the user is lower than the set frequency threshold, and the time when the heart rate value is lower than the set frequency threshold exceeds the first set time threshold, the playing of the audio file can be directly turned off.
本实施例提供的技术方案,在根据当前地理位置确定音频文件后,根据用户的心率和/或运动状态从确定的音频文件中筛选出与用户当前状态匹配的音频文件进行播放,播放的音频文件更能满足用户的需求,而且在播放音频文件时,可以根据用户的状态对终端的音量进行调节,提高了用户收听音频文件的体验。In the technical solution provided by the embodiment, after the audio file is determined according to the current geographic location, the audio file matching the current state of the user is filtered from the determined audio file according to the heart rate and/or the motion state of the user, and the played audio file is played. It can better meet the needs of users, and when playing audio files, the volume of the terminal can be adjusted according to the state of the user, which improves the user's experience of listening to audio files.
实施例三Embodiment 3
图3是本发明实施例三提供的一种音频播放方法的流程示意图。本实施例是在上述实施例二的基础上进行了优化操作。参见图3,本实施例提供的音频播放方法包括:FIG. 3 is a schematic flowchart of an audio playing method according to Embodiment 3 of the present invention. This embodiment performs an optimization operation based on the second embodiment described above. Referring to FIG. 3, the audio playing method provided in this embodiment includes:
S310、监测到音乐播放事件触发时,通过终端上或者耳机上的心率传感器周期性获取用户的心率状态。S310. When the music play event is triggered, the heart rate state of the user is periodically obtained through a heart rate sensor on the terminal or on the earphone.
例如,当用户在终端上开启音乐播放器时,终端上内置的心率传感器同步开启,用户在手持终端状态下,可以通过终端上的心率传感器获取用户的心率状态。或者,当终端检测的耳机插入时,激活耳机上的心率传感器,此时可通过耳机上的传感器获取用户的心率状态。当用户点击播放音乐时,终端控制心率传感器开启心率监测,并周期性地获取用户的心率值。For example, when the user turns on the music player on the terminal, the heart rate sensor built in the terminal is synchronously turned on, and the user can obtain the heart rate state of the user through the heart rate sensor on the terminal in the state of the handheld terminal. Alternatively, when the earphone detected by the terminal is inserted, the heart rate sensor on the earphone is activated, and the heart rate state of the user can be obtained through the sensor on the earphone. When the user clicks to play music, the terminal controls the heart rate sensor to turn on heart rate monitoring and periodically acquires the user's heart rate value.
S320、通过终端上的加速度传感器周期性获取用户的运动状态。S320: Periodically acquire a motion state of the user by using an acceleration sensor on the terminal.
在本实施例中,优选可以以10s为周期获取用户的心率状态和运动状态。In the present embodiment, it is preferable that the heart rate state and the motion state of the user can be acquired in a cycle of 10 s.
S330、获取终端所属的地理位置。 S330. Obtain a geographic location to which the terminal belongs.
S340、获取文字内容与地理位置关联的第一音频文件。S340. Acquire a first audio file whose text content is associated with a geographic location.
S350、从第一音频文件中选择与用户的心率状态和/或运动状态对应的第二音频文件。S350. Select a second audio file corresponding to the heart rate state and/or the motion state of the user from the first audio file.
S360、在音频文件切换播放时,随机播放其中一个第二音频文件。S360: randomly playing one of the second audio files when the audio file is switched and played.
在切换到下一首歌前,让最后一次获取到的心率值与云端音乐数据库匹配,并输出相关类型的音乐,并随机播放其中的一首音乐。当检测到心率长时间低于一比较低的频率阈值时,可关闭当前播放的音乐。Before switching to the next song, match the last heart rate value to the cloud music database, output the relevant type of music, and randomly play one of the music. The currently playing music can be turned off when it is detected that the heart rate is below a relatively low frequency threshold for a long time.
本实施例提供的技术方案,可以通过终端上内置的心率传感器或者耳机上的心率传感器获取用户的心率,通过加速度传感器获取用户的运动状态,可准确检测出用户的状态,操作方便,并播放与用户状态匹配的音频文件,提高用户收听音频文件的体验。The technical solution provided by the embodiment can obtain the heart rate of the user through the heart rate sensor built in the terminal or the heart rate sensor on the earphone, and obtain the motion state of the user through the acceleration sensor, which can accurately detect the state of the user, is convenient to operate, and plays and User files match the audio file to improve the user experience of listening to audio files.
实施例四Embodiment 4
图4是本发明实施例四提供的一种音频播放装置的结构示意图。参见图4,该装置包括:4 is a schematic structural diagram of an audio playback device according to Embodiment 4 of the present invention. Referring to Figure 4, the apparatus includes:
位置和状态获取模块410,用于监测到音频播放事件触发时,获取终端所属的地理位置和用户状态;The location and status obtaining module 410 is configured to: when the audio play event is triggered, acquire the geographic location and the user status to which the terminal belongs;
音频播放控制模块420,用于根据所述地理位置和用户状态控制音频的播放。The audio play control module 420 is configured to control the playing of the audio according to the geographic location and the user state.
其中,所述用户状态包括用户的心率状态和运动状态。The user status includes a heart rate status and a motion status of the user.
进一步的,所述音频播放控制模块420包括:Further, the audio play control module 420 includes:
音频文件确定单元421,用于确定与所述地理位置关联的第一音频文件; The audio file determining unit 421 is configured to determine a first audio file associated with the geographic location;
音频文件选择单元422,用于从所述第一音频文件中选择与用户的心率状态和/或运动状态对应的第二音频文件;The audio file selecting unit 422 is configured to select, from the first audio file, a second audio file corresponding to a heart rate state and/or a motion state of the user;
音频文件播放单元423,用于在音频文件切换播放时,随机播放其中一个所述第二音频文件。The audio file playing unit 423 is configured to randomly play one of the second audio files when the audio file is switched and played.
进一步的,所述音频播放控制模块420还包括:Further, the audio play control module 420 further includes:
音量调节单元424,用于在随机播放一个所述第二音频文件之后,根据用户的心率状态和/或运动状态调节终端播放所述第二音频文件的音量。The volume adjustment unit 424 is configured to adjust the volume of the second audio file played by the terminal according to the heart rate state and/or the motion state of the user after randomly playing one of the second audio files.
进一步的,所述音频文件确定单元421具体用于:Further, the audio file determining unit 421 is specifically configured to:
获取文字内容与所述地理位置关联的第一音频文件。Obtaining a first audio file whose text content is associated with the geographic location.
进一步的,所述位置和状态获取模块410包括:Further, the location and status acquisition module 410 includes:
心率状态获取单元411,用于监测到音频播放事件触发时,通过终端上或者耳机上的心率传感器周期性获取用户的心率状态;The heart rate state obtaining unit 411 is configured to periodically acquire the heart rate state of the user through a heart rate sensor on the terminal or on the earphone when the audio play event is triggered;
运动状态获取单元412,用于通过终端上的加速度传感器周期性获取用户的运动状态。The motion state acquiring unit 412 is configured to periodically acquire the motion state of the user by using an acceleration sensor on the terminal.
上述装置可执行本发明任意实施例所提供的音频播放方法,具备执行方法相应的功能模块和有益效果。The above device can perform the audio playing method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the executing method.
本发明实施例还提供一种终端,该终端包括本发明任意实施例中的音频播放装置。An embodiment of the present invention further provides a terminal, where the terminal includes an audio playback device in any embodiment of the present invention.
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽 然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。 Note that the above are only the preferred embodiments of the present invention and the technical principles applied thereto. Those skilled in the art will appreciate that the present invention is not limited to the specific embodiments described herein, and that various modifications, changes and substitutions may be made without departing from the scope of the invention. Therefore, though The present invention is described in detail by the above embodiments, but the present invention is not limited to the above embodiments, and other equivalent embodiments may be included without departing from the scope of the present invention. It is determined by the scope of the appended claims.

Claims (13)

  1. 一种音频播放方法,其特征在于,包括:An audio playing method, comprising:
    监测到音频播放事件触发时,获取终端所属的地理位置和用户状态;Obtaining the geographic location and user status of the terminal when the audio play event is triggered;
    根据所述地理位置和用户状态控制音频的播放。The playback of the audio is controlled according to the geographic location and user status.
  2. 根据权利要求1所述的方法,其特征在于,所述用户状态包括用户的心率状态和运动状态。The method of claim 1 wherein said user status comprises a heart rate status and a motion status of the user.
  3. 根据权利要求2所述的方法,其特征在于,根据所述地理位置和用户状态控制音频的播放,包括:The method according to claim 2, wherein controlling the playing of the audio according to the geographic location and the user state comprises:
    确定与所述地理位置关联的第一音频文件;Determining a first audio file associated with the geographic location;
    从所述第一音频文件中选择与用户的心率状态和/或运动状态对应的第二音频文件;Selecting, from the first audio file, a second audio file corresponding to a heart rate state and/or a motion state of the user;
    在音频文件切换播放时,随机播放其中一个所述第二音频文件。When the audio file is switched to play, one of the second audio files is randomly played.
  4. 根据权利要求3所述的方法,其特征在于,根据所述地理位置和用户状态控制音频的播放,还包括:The method according to claim 3, wherein controlling the playing of the audio according to the geographic location and the user state further comprises:
    根据用户的心率状态和/或运动状态调节终端播放所述第二音频文件的音量。Adjusting the volume of the second audio file played by the terminal according to the heart rate state and/or the motion state of the user.
  5. 根据权利要求3或4所述的方法,其特征在于,确定与所述地理位置关联的第一音频文件,包括A method according to claim 3 or 4, wherein the first audio file associated with the geographic location is determined, including
    获取文字内容与所述地理位置关联的第一音频文件。Obtaining a first audio file whose text content is associated with the geographic location.
  6. 根据权利要求2所述的方法,其特征在于,监测到音频播放事件触发时,获取终端所属的地理位置和用户状态,包括: The method according to claim 2, wherein when the triggering of the audio play event is triggered, acquiring the geographic location and the user status to which the terminal belongs includes:
    监测到音频播放事件触发时,通过终端上或者耳机上的心率传感器周期性获取用户的心率状态;When the audio play event is triggered, the heart rate state of the user is periodically obtained through a heart rate sensor on the terminal or on the earphone;
    通过终端上的加速度传感器周期性获取用户的运动状态。The motion state of the user is periodically acquired by an acceleration sensor on the terminal.
  7. 一种音频播放装置,其特征在于,包括:An audio playback device, comprising:
    位置和状态获取模块,用于监测到音频播放事件触发时,获取终端所属的地理位置和用户状态;a location and status acquisition module, configured to monitor a geographic location and a user status of the terminal when the audio playback event is triggered;
    音频播放控制模块,用于根据所述地理位置和用户状态控制音频的播放。The audio play control module is configured to control the playing of the audio according to the geographic location and the user state.
  8. 根据权利要求7所述的装置,其特征在于,所述用户状态包括用户的心率状态和运动状态。The apparatus of claim 7 wherein said user status comprises a heart rate status and a motion status of the user.
  9. 根据权利要求8所述的装置,其特征在于,所述音频播放控制模块包括:The device according to claim 8, wherein the audio playback control module comprises:
    音频文件确定单元,用于确定与所述地理位置关联的第一音频文件;An audio file determining unit, configured to determine a first audio file associated with the geographic location;
    音频文件选择单元,用于从所述第一音频文件中选择与用户的心率状态和/或运动状态对应的第二音频文件;An audio file selection unit, configured to select, from the first audio file, a second audio file corresponding to a heart rate state and/or a motion state of the user;
    音频文件播放单元,用于在音频文件切换播放时,随机播放其中一个所述第二音频文件。And an audio file playing unit, configured to randomly play one of the second audio files when the audio file is switched and played.
  10. 根据权利要求9所述的装置,其特征在于,所述音频播放控制模块,还包括:The device of claim 9, wherein the audio playback control module further comprises:
    音量调节单元,用于在随机播放一个所述第二音频文件之后,根据用户的心率状态和/或运动状态调节终端播放所述第二音频文件的音量。a volume adjustment unit, configured to adjust a volume of playing the second audio file by the terminal according to a heart rate state and/or a motion state of the user after randomly playing one of the second audio files.
  11. 根据权利要求9或10所述的装置,其特征在于,所述音频文件确定单元具体用于:The device according to claim 9 or 10, wherein the audio file determining unit is specifically configured to:
    获取文字内容与所述地理位置关联的第一音频文件。 Obtaining a first audio file whose text content is associated with the geographic location.
  12. 根据权利要求8所述的装置,其特征在于,所述位置和状态获取模块包括:The device according to claim 8, wherein the location and status acquisition module comprises:
    心率状态获取单元,用于监测到音频播放事件触发时,通过终端上或者耳机上的心率传感器周期性获取用户的心率状态;a heart rate state acquiring unit, configured to periodically acquire a heart rate state of the user through a heart rate sensor on the terminal or on the earphone when the audio playing event is triggered;
    运动状态获取单元,用于通过终端上的加速度传感器周期性获取用户的运动状态。The motion state acquiring unit is configured to periodically acquire the motion state of the user by using an acceleration sensor on the terminal.
  13. 一种终端,其特征在于,包括权利要7-12任一项所述的音频播放装置。 A terminal characterized by comprising the audio playback device of any of claims 7-12.
PCT/CN2017/076302 2016-09-28 2017-03-10 Audio playing method and device, and terminal WO2018058901A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610861254.1 2016-09-28
CN201610861254.1A CN106484358A (en) 2016-09-28 2016-09-28 A kind of audio frequency playing method, device and terminal

Publications (1)

Publication Number Publication Date
WO2018058901A1 true WO2018058901A1 (en) 2018-04-05

Family

ID=58267967

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/076302 WO2018058901A1 (en) 2016-09-28 2017-03-10 Audio playing method and device, and terminal

Country Status (2)

Country Link
CN (1) CN106484358A (en)
WO (1) WO2018058901A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106484358A (en) * 2016-09-28 2017-03-08 珠海格力电器股份有限公司 A kind of audio frequency playing method, device and terminal
CN107085512A (en) * 2017-04-24 2017-08-22 广东小天才科技有限公司 A kind of audio frequency playing method and mobile terminal
CN109765784A (en) * 2019-01-11 2019-05-17 深圳市迷购网络科技有限公司 Headset control method, earphone and computer readable storage medium
CN111831249A (en) * 2020-07-07 2020-10-27 Oppo广东移动通信有限公司 Audio playing method and device, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105335507A (en) * 2015-10-29 2016-02-17 维沃移动通信有限公司 Method and device for pushing music
CN105608095A (en) * 2014-11-25 2016-05-25 深圳市腾讯计算机系统有限公司 Multimedia playing method and device as well as mobile terminal
CN105763911A (en) * 2016-01-20 2016-07-13 努比亚技术有限公司 Method and terminal for video playing
CN106484358A (en) * 2016-09-28 2017-03-08 珠海格力电器股份有限公司 A kind of audio frequency playing method, device and terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105608095A (en) * 2014-11-25 2016-05-25 深圳市腾讯计算机系统有限公司 Multimedia playing method and device as well as mobile terminal
CN105335507A (en) * 2015-10-29 2016-02-17 维沃移动通信有限公司 Method and device for pushing music
CN105763911A (en) * 2016-01-20 2016-07-13 努比亚技术有限公司 Method and terminal for video playing
CN106484358A (en) * 2016-09-28 2017-03-08 珠海格力电器股份有限公司 A kind of audio frequency playing method, device and terminal

Also Published As

Publication number Publication date
CN106484358A (en) 2017-03-08

Similar Documents

Publication Publication Date Title
WO2018058901A1 (en) Audio playing method and device, and terminal
US9804816B2 (en) Generating a playlist based on a data generation attribute
CN105390144B (en) A kind of audio-frequency processing method and apparatus for processing audio
US10799795B1 (en) Real-time audio generation for electronic games based on personalized music preferences
CN107180631A (en) Voice interaction method and device
CN108010541A (en) Method and device, the storage medium of pitch information are shown in direct broadcasting room
US10461712B1 (en) Automatic volume leveling
CN103327186A (en) Method for controlling mobile phone music player
EP3929770B1 (en) Methods, systems, and media for modifying the presentation of video content on a user device based on a consumption of the user device
WO2016041305A1 (en) Method for wake up by music and mobile device
WO2017101365A1 (en) Method and terminal device for continuing playing audio/video file at muted position
WO2019239656A1 (en) Information processing device and information processing method
WO2016184095A1 (en) Operation event execution method and apparatus, and terminal
US20170115953A1 (en) Controlling audio playback based on activity
WO2023207472A1 (en) Audio synthesis method, electronic device and readable storage medium
CN109712600A (en) A kind of method and device of beat identification
CN105766001A (en) System and method for audio processing using arbitrary triggers
CN106161714B (en) Ringtone playing method and device, and terminal
CN106407353A (en) Animation playing method and apparatus
CN106331841B (en) Network speed information indicating method and device
CN106060255B (en) A kind of volume adjusting method and smart machine
TW201627886A (en) Accompaniment visual effect system and method for processing accompaniment visual effect
CN105786363B (en) A kind of control method for playing back of voice box group, device and intelligent sound box
CN107509139B (en) Audio processing device, method and media device capable of sounding
US20210030348A1 (en) Systems and methods to improve a user's mental state

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17854361

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17854361

Country of ref document: EP

Kind code of ref document: A1