CN112765395B - Audio playback method, electronic device and storage medium - Google Patents
Audio playback method, electronic device and storage medium Download PDFInfo
- Publication number
- CN112765395B CN112765395B CN202110090450.4A CN202110090450A CN112765395B CN 112765395 B CN112765395 B CN 112765395B CN 202110090450 A CN202110090450 A CN 202110090450A CN 112765395 B CN112765395 B CN 112765395B
- Authority
- CN
- China
- Prior art keywords
- audio
- user
- value
- speaker
- relationship
- Prior art date
- Legal status (The legal status 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 status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 54
- 238000001914 filtration Methods 0.000 claims abstract description 7
- 230000033001 locomotion Effects 0.000 claims description 58
- 230000033764 rhythmic process Effects 0.000 claims description 21
- 238000004590 computer program Methods 0.000 claims description 6
- 230000005284 excitation Effects 0.000 claims 2
- 230000007613 environmental effect Effects 0.000 description 12
- 230000000717 retained effect Effects 0.000 description 9
- 238000007405 data analysis Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000012544 monitoring process Methods 0.000 description 3
- 238000012549 training Methods 0.000 description 3
- 208000027418 Wounds and injury Diseases 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 2
- 230000006378 damage Effects 0.000 description 2
- 238000013480 data collection Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 210000005069 ears Anatomy 0.000 description 2
- 230000006698 induction Effects 0.000 description 2
- 208000014674 injury Diseases 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 239000011435 rock Substances 0.000 description 2
- 206010048909 Boredom Diseases 0.000 description 1
- 229920000742 Cotton Polymers 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000033228 biological regulation Effects 0.000 description 1
- 230000036760 body temperature Effects 0.000 description 1
- 210000000988 bone and bone Anatomy 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000001788 irregular Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 230000003252 repetitive effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/60—Information retrieval; Database structures therefor; File system structures therefor of audio data
- G06F16/63—Querying
- G06F16/635—Filtering based on additional data, e.g. user or group profiles
- G06F16/636—Filtering based on additional data, e.g. user or group profiles by using biological or physiological data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/60—Information retrieval; Database structures therefor; File system structures therefor of audio data
- G06F16/63—Querying
- G06F16/635—Filtering based on additional data, e.g. user or group profiles
- G06F16/637—Administration of user profiles, e.g. generation, initialization, adaptation or distribution
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/20—Arrangements for obtaining desired frequency or directional characteristics
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Multimedia (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Biomedical Technology (AREA)
- Biophysics (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Physiology (AREA)
- Circuit For Audible Band Transducer (AREA)
Abstract
Description
技术领域Technical field
本发明实施例涉及智能音乐播放技术领域,特别涉及一种音频播放方法、电子设备和存储介质。Embodiments of the present invention relate to the technical field of intelligent music playback, and in particular to an audio playback method, electronic device and storage medium.
背景技术Background technique
在健身房运动的场景中,用户通常会使用音频播放设备播放音乐,以减少重复的单调运动造成的无聊,提高健身运动时的舒适度。现有技术中播放音乐的方式包括:方式一:采用头戴式运动耳机或者入耳式运动耳机通过便携式播放设备(如手机、MP3)来播放音频。方式二:通过健身房的广播系统播放音乐。In gym exercise scenarios, users usually use audio playback devices to play music to reduce boredom caused by repetitive monotonous exercises and improve comfort during fitness exercises. Methods of playing music in the prior art include: Method 1: Use head-mounted sports headphones or in-ear sports headphones to play audio through a portable playback device (such as a mobile phone, MP3). Method 2: Play music through the gym’s PA system.
然而,发明人发现相关技术中至少存在如下问题:方式一需要佩戴耳机在用户身上,影响用户运动,对用户来说不够方便。方式二,广播系统播放的音乐通常使用统一的背景音乐,无法适应每个人的喜好。However, the inventor found that there are at least the following problems in the related technology: the first method requires wearing headphones on the user, which affects the user's movement and is not convenient enough for the user. Method 2: The music played by the broadcast system usually uses uniform background music, which cannot adapt to everyone's preferences.
发明内容Contents of the invention
本发明实施方式的目的在于提供一种音乐播放方法、电子设备和存储介质,使得用户可以无需佩戴耳机脱离需要随身携带的音乐播放设备,就可以收听到针对用户播放的音乐,为用户提供了便捷。The purpose of the embodiments of the present invention is to provide a music playing method, electronic device and storage medium, so that the user can listen to the music played for the user without wearing earphones and detached from the music playing device that needs to be carried, thus providing the user with convenience .
为解决上述技术问题,本发明的实施方式提供了一种音频播放方法,包括:确定用户与所述用户所处区域的扬声器之间的位置关系;确定所述用户所处区域的环境声音与所述扬声器当前播放的音频之间的声音关系;根据所述位置关系和所述声音关系,确定所述扬声器的滤波系数;根据所述滤波系数对所述音频进行滤波,并聚焦滤波后的音频至所述用户。In order to solve the above technical problems, an embodiment of the present invention provides an audio playback method, which includes: determining the positional relationship between the user and the speakers in the area where the user is located; determining the environmental sound in the area where the user is located and the location of the audio playback method. The sound relationship between the audio currently played by the speaker; determining the filter coefficient of the speaker according to the position relationship and the sound relationship; filtering the audio according to the filter coefficient, and focusing the filtered audio to said user.
本发明的实施方式还提供了一种电子设备,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述的音频播放方法。An embodiment of the present invention also provides an electronic device, including: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores information that can be executed by the at least one processor. instructions, which are executed by the at least one processor, so that the at least one processor can execute the above audio playback method.
本发明的实施方式还提供了一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现上述的音频播放方法。An embodiment of the present invention also provides a computer-readable storage medium that stores a computer program. When the computer program is executed by a processor, the above-mentioned audio playback method is implemented.
本发明实施方式,确定用户与扬声器之间的关系;其中,扬声器设置在所述用户所处区域,所述关系包括:所述用户与所述扬声器之间的位置关系和/或所述用户所处区域的环境声音与所述扬声器当前播放的音频之间的声音关系;根据所述关系,确定所述扬声器的滤波系数;根据所述滤波系数对所述扬声器当前播放的音频进行滤波,并聚焦滤波后的所述音频至所述用户所处区域。用户与扬声器之间的位置关系可以反映用户与扬声器之间的距离远近,用户所处区域的环境声音与当前播放的音频之间的声音关系可以反映用户实际可以听到的播放的音频受环境声音的干扰程度,结合位置关系和/或声音关系确定的滤波系数,有利于使得滤波后的音乐适应用户与扬声器之间位置关系和/或降低环境声音对播放的音频的干扰程度。聚焦滤波后的音频至用户所处区域,即滤波后的音乐聚焦至用户所处区域,尽可能使得该用户能够听到滤波后的音乐,而处于其他区域的其他用户几乎听不到滤波后的音乐,避免用户所处区域设置的扬声器播放的音乐对处于其他区域的其他用户的影响,有利于通过设置在不同区域的扬声器为处于不同区域的用户播放不同的音乐,从而适应不同用户的个人喜好。本实施例中的音乐播放方法,使得用户可以无需佩戴耳机脱离需要随身携带的音乐播放设备,就可以收听到针对用户播放的音乐,为用户提供了便捷,当用户处于健身区域时,有利于提高用户的健身体验。In the embodiment of the present invention, the relationship between the user and the speaker is determined; wherein the speaker is installed in the area where the user is located, and the relationship includes: the positional relationship between the user and the speaker and/or the location where the user is located. The sound relationship between the ambient sound in the area and the audio currently played by the speaker; according to the relationship, determine the filter coefficient of the speaker; filter the audio currently played by the speaker according to the filter coefficient, and focus The filtered audio is transmitted to the area where the user is located. The positional relationship between the user and the speaker can reflect the distance between the user and the speaker. The sound relationship between the environmental sound in the user's area and the currently played audio can reflect the audio played by the user that can actually be heard by the environmental sound. The degree of interference, combined with the filter coefficient determined by the positional relationship and/or the sound relationship, is beneficial to making the filtered music adapt to the positional relationship between the user and the speaker and/or reducing the degree of interference of environmental sounds on the played audio. Focus the filtered audio to the area where the user is, that is, focus the filtered music to the area where the user is, so that the user can hear the filtered music as much as possible, while other users in other areas can hardly hear the filtered music. Music, to avoid the impact of music played by speakers set in the user's area on other users in other areas, and to facilitate the use of speakers set in different areas to play different music for users in different areas, thereby adapting to the personal preferences of different users . The music playing method in this embodiment allows the user to listen to the music played for the user without wearing headphones and leaving the music playing device that needs to be carried around, which provides convenience for the user and is conducive to improving the performance when the user is in the fitness area. User’s fitness experience.
另外,所述根据所述关系,确定所述扬声器的滤波系数,包括:获取所述用户当前的运动数据,并根据所述运动数据确定调整系数;根据所述调整系数和所述关系,确定所述扬声器的滤波系数。运动数据可以体现用户当前的运动状态,在位置关系和/或声音关系的基础上进一步结合基于用户当前的运动数据确定的调整系数,来确定滤波系数,使得滤波后的音乐还能适应用户当前的运动状态,有利于提高用户在运动过程中听音乐的体验。In addition, determining the filter coefficient of the speaker according to the relationship includes: obtaining the user's current motion data and determining an adjustment coefficient according to the motion data; determining the adjustment coefficient according to the adjustment coefficient and the relationship. The filter coefficient of the speaker. The motion data can reflect the user's current motion state. On the basis of the position relationship and/or sound relationship, the filter coefficients are further combined with the adjustment coefficient determined based on the user's current motion data, so that the filtered music can also adapt to the user's current state. Movement state is conducive to improving the user's experience of listening to music during exercise.
另外,所述运动数据包括运动时长和/或运动速度,所述调整系数包括第一调整系数和/或第二调整系数,所述根据所述运动数据确定调整系数,包括:根据所述用户当前的运动时长与预设的运动时长之间的时长差值,确定与所述时长差值对应的第一调整系数;和/或,根据所述用户当前的运动速度与预设的运动速度之间的速度差值,确定与所述速度差值对应的第二调整系数。时长差值可以反应用户实际的运动时长和预期的运动时长之间的差异,速度差值可以反应用户实际的运动速度和预期的运动速度之间的差异,根据时长差值有利于更加合理的确定第一调整系数,根据速度差值有利于更加合理的确定第二调整系数,从而进行进一步提高确定的滤波系数的合理性。In addition, the motion data includes motion duration and/or motion speed, the adjustment coefficient includes a first adjustment coefficient and/or a second adjustment coefficient, and determining the adjustment coefficient according to the motion data includes: according to the user's current The duration difference between the exercise duration and the preset exercise duration, determine the first adjustment coefficient corresponding to the duration difference; and/or, according to the difference between the user's current exercise speed and the preset exercise speed the speed difference, and determine the second adjustment coefficient corresponding to the speed difference. The duration difference can reflect the difference between the user's actual exercise duration and the expected exercise duration. The speed difference can reflect the difference between the user's actual exercise speed and the expected exercise speed. The duration difference can help make a more reasonable determination. The first adjustment coefficient is conducive to a more reasonable determination of the second adjustment coefficient based on the speed difference, thereby further improving the rationality of the determined filter coefficient.
另外,在所述扬声器当前播放的音频被播放至预设进度时,所述方法还包括:获取所述用户的当前心率值和推荐心率值;若所述当前心率值大于所述推荐心率值,基于列表确定与所述当前播放的音频最近的目标音频,并将所述目标音频作为所述当前播放的音频被播放完毕后所述扬声器播放的音频;或者,获取所述当前心率值和所述推荐心率值的心率差值,根据列表中所述当前播放的音频之后的各音频的推荐播放值,确定与所述心率差值匹配的音频,并将所述匹配的音频作为所述当前播放的音频被播放完毕后所述扬声器播放的音频;其中,所述目标音频的推荐播放值小于或等于预设播放阈值,所述推荐播放值用于表征所述目标音频的兴奋程度。结合音频的兴奋程度、用户的当前心率值以及对用户的推荐心率值,能够更加合理的确定当前播放的音频被播放完毕后扬声器播放的音频,提高扬声器播放的音频与用户的心率的符合程度。比如,当前心率值大于推荐心率值,即当前心率值较大,为了使用户的当前心率值降下来,如果下一音频的兴奋程度较低,可以将下一音频作为接下来扬声器要播放的音频,提高用户听见下一音频后,心率值降下来的可能性。In addition, when the audio currently played by the speaker is played to the preset progress, the method also includes: obtaining the current heart rate value and the recommended heart rate value of the user; if the current heart rate value is greater than the recommended heart rate value, Determine the target audio closest to the currently played audio based on the list, and use the target audio as the audio played by the speaker after the currently played audio is played; or, obtain the current heart rate value and the The heart rate difference of the recommended heart rate value is determined based on the recommended play value of each audio after the currently played audio in the list, and the audio that matches the heart rate difference is determined, and the matched audio is used as the currently played audio. The audio played by the speaker after the audio is played; wherein the recommended playback value of the target audio is less than or equal to the preset playback threshold, and the recommended playback value is used to represent the excitement level of the target audio. Combining the excitement level of the audio, the user's current heart rate value and the recommended heart rate value for the user, it is possible to more reasonably determine the audio played by the speaker after the currently played audio is played, and improve the consistency between the audio played by the speaker and the user's heart rate. For example, the current heart rate value is greater than the recommended heart rate value, that is, the current heart rate value is larger. In order to reduce the user's current heart rate value, if the excitement level of the next audio is low, the next audio can be used as the audio to be played by the next speaker. , to increase the possibility that the user's heart rate will decrease after hearing the next audio.
附图说明Description of drawings
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定。One or more embodiments are exemplified by the pictures in the corresponding drawings, and these exemplary illustrations do not constitute limitations to the embodiments.
图1是根据本发明第一实施方式中提到的音频播放方法的流程图;Figure 1 is a flow chart of an audio playback method mentioned in the first embodiment of the present invention;
图2是根据本发明第一实施方式中提到的步骤102的子步骤的流程图;Figure 2 is a flow chart of the sub-steps of step 102 mentioned in the first embodiment of the present invention;
图3是根据本发明第二实施方式中提到的音频播放方法的流程图;Figure 3 is a flow chart of the audio playback method mentioned in the second embodiment of the present invention;
图4是根据本发明第二实施方式中提到的步骤305的子步骤的流程图;Figure 4 is a flow chart of the sub-steps of step 305 mentioned in the second embodiment of the present invention;
图5是根据本发明第三实施方式中提到的电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device according to a third embodiment of the present invention.
具体实施方式Detailed ways
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合附图对本发明的各实施方式进行详细的阐述。然而,本领域的普通技术人员可以理解,在本发明各实施方式中,为了使读者更好地理解本申请而提出了许多技术细节。但是,即使没有这些技术细节和基于以下各实施方式的种种变化和修改,也可以实现本申请所要求保护的技术方案。以下各个实施例的划分是为了描述方便,不应对本发明的具体实现方式构成任何限定,各个实施例在不矛盾的前提下可以相互结合相互引用。In order to make the objectives, technical solutions and advantages of the embodiments of the present invention clearer, each implementation mode of the present invention will be described in detail below with reference to the accompanying drawings. However, those of ordinary skill in the art will understand that in various embodiments of the present invention, many technical details are provided to enable readers to better understand the present application. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solution claimed in this application can also be implemented. The division of the following embodiments is for convenience of description and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined with each other and quoted from each other on the premise that there is no contradiction.
本申请的发明人考虑到,在健身房运动的场景下,现有技术中采用的头戴式运动耳机或者入耳式运动耳机通过便携式播放设备(如手机、MP3)来播放音频的方式中,由于用户在健身运动通常较为激烈,这两种耳机要么固定不牢固,影响用户运动,要么就需要在用户身上固定得更加牢固,耳机与用户的固定部位十分不适。并且传统运动耳机内置耳塞、骨传导耳机和蓝牙模块,在运动和室外外界干扰较强(健身房属于声源干扰较强场馆)时传声质量和传声效果不佳,进而影响用户体验。现有技术中通过健身房的广播系统收听音乐时,由于绝大部分健身场馆均是开放性空间,且健身房内的用户较多,并且做不同的运动适合的音乐节奏不同,广播系统播放的音乐无法适应每个人的喜好。而且通常情况下使用统一的背景音乐,无法根据不同运动训练提供相应的音乐,也无法提供不同运动所需要的运动指导教程。The inventor of the present application considered that in the scenario of gym exercise, the head-mounted sports headphones or in-ear sports headphones used in the prior art play audio through portable playback devices (such as mobile phones, MP3), because the user In fitness exercises, which are usually intense, these two types of headphones are either not firmly fixed, affecting the user's movement, or they need to be fixed more firmly on the user, making the fixed parts of the headphones and the user very uncomfortable. In addition, traditional sports headphones have built-in earplugs, bone conduction headphones and Bluetooth modules. When there is strong external interference during exercise and outdoors (gym is a venue with strong sound source interference), the sound transmission quality and sound transmission effect are poor, thus affecting the user experience. In the existing technology, when listening to music through the gym's broadcast system, since most fitness venues are open spaces, there are many users in the gym, and different music rhythms are suitable for different exercises, the music played by the broadcast system cannot Adapted to everyone's preferences. Moreover, unified background music is usually used, and it is impossible to provide corresponding music according to different sports training, nor to provide sports guidance tutorials required for different sports.
为了解决现有技术中的上述问题,本发明的第一实施方式提供一种音频播放方法,使得用户可以无需佩戴耳机脱离需要随身携带的音乐播放设备,就可以收听到针对用户播放的音乐,为用户提供了便捷,提高用户的运动体验。本实施方式中的音频播放方法的应用场景可以为:设置有扬声器的开放性空间中用户需要收听音乐场景,比如,健身房这种开放性空间。本实施方式中的音乐播放方法应用于电子设备,该电子设备可以为音乐播放设备或云服务器,下面以电子设备为云服务器为例,对本实施方式的音频播放方法的实现细节进行具体的说明,以下内容仅为方便理解提供的实现细节,并非实施本方案的必须。In order to solve the above-mentioned problems in the prior art, the first embodiment of the present invention provides an audio playback method, so that the user can listen to the music played for the user without wearing headphones and detached from the music playback device that needs to be carried. It provides users with convenience and improves their sports experience. The application scenario of the audio playback method in this embodiment may be a scenario where the user needs to listen to music in an open space equipped with speakers, such as an open space such as a gym. The music playback method in this embodiment is applied to an electronic device. The electronic device can be a music playback device or a cloud server. Taking the electronic device as a cloud server as an example, the implementation details of the audio playback method in this embodiment will be specifically described below. The following contents are only implementation details provided for ease of understanding and are not necessary to implement this solution.
本实施方式中的音频播放方法的流程图如图1所示,包括:The flow chart of the audio playback method in this embodiment is shown in Figure 1, including:
步骤101:确定用户与扬声器之间的关系。Step 101: Determine the relationship between the user and the speaker.
步骤102:根据所述关系,确定扬声器的滤波系数。Step 102: Determine the filter coefficient of the speaker according to the relationship.
步骤103:根据滤波系数对扬声器当前播放的音频进行滤波,并聚焦滤波后的音频至用户所处区域。Step 103: Filter the audio currently played by the speaker according to the filter coefficient, and focus the filtered audio to the area where the user is located.
其中,扬声器设置在用户所处区域。用户所处区域可以为基于健身房的整个健身区域划分的多个单独的子区域中的一个。比如,健身房基于声聚焦技术,将每个健身器材分区摆放,形成多个逻辑上独立的子区域,每个子区域中均设置有扬声器,扬声器可以设置在子区域上方的天花板上,也可以设置在地面上,扬声器可以设置在用户所处区域的上方,比如,不同子区域中的扬声器设置在该子区域的正上方。根据实际需要还可以设置在其他地方,本实施例对此不作具体限定。一个子区域中设置的扬声器的个数可以根据实际需要进行设置,本实施例对此不作具体限定。Among them, the speaker is set in the area where the user is located. The area where the user is located may be one of multiple individual sub-areas divided based on the entire fitness area of the gym. For example, based on sound focusing technology, a gym places each fitness equipment in zones to form multiple logically independent sub-areas. Each sub-area is equipped with speakers. The speakers can be set on the ceiling above the sub-area, or On the ground, speakers can be placed above the area where the user is located. For example, speakers in different sub-areas are placed directly above the sub-area. It can also be set in other places according to actual needs, which is not specifically limited in this embodiment. The number of speakers provided in a sub-area can be set according to actual needs, and this embodiment does not specifically limit this.
在一个例子中,某个单独的子区域为跑步机所在区域,该跑步机所在区域中设置的扬声器均基于聚焦技术布置,健身者站在跑步机上,其耳朵所在部位为扬声器的声音聚焦位置。也就是说,跑步机上的健身者可以听到其所在的子区域中设置的扬声器播放的声音,对于处于其他区域(如胸部器械所在的子区域)的健身者无法听到该声音。如在健身房内,不同的子区域的正上方设置带有声聚焦系统的扬声器。带有声聚焦系统的扬声器将该区域专用声波聚焦投射向下方的子区域。In one example, a separate sub-area is the area where the treadmill is located. The speakers set in the area where the treadmill is located are all arranged based on focusing technology. The bodybuilder stands on the treadmill, and the part where his or her ears are is the focus position of the speaker's sound. That is to say, the exercisers on the treadmill can hear the sound played by the speakers set in the sub-area where they are located, but the exercisers in other areas (such as the sub-area where the chest equipment is located) cannot hear the sound. For example, in a gym, speakers with sound focusing systems are placed directly above different sub-areas. Loudspeakers with sound focusing systems project area-specific focused sound waves to sub-areas below.
在具体实现中,扬声器中包括滤波模块,该滤波模块用于对扬声器输出的声音进行滤波,滤波程度可以根据用户与扬声器之间的关系、用户当前的运动状态等确定。In a specific implementation, the speaker includes a filter module, which is used to filter the sound output by the speaker. The degree of filtering can be determined based on the relationship between the user and the speaker, the user's current motion state, etc.
在一个例子中,各子区域布置有室内感应系统,可以包括,压力感应地板、器械感应器、距离感应器等信息采集设备。该室内感应系统可以感应到室内属性(如温度,湿度,嘈杂程度),也可以采集健身者位置信息、运动体征监测数据等。In one example, each sub-area is equipped with an indoor sensing system, which may include pressure sensing floors, equipment sensors, distance sensors and other information collection devices. The indoor sensing system can sense indoor attributes (such as temperature, humidity, noise level), and can also collect fitness body location information, sports sign monitoring data, etc.
在具体实现中,用户进入健身房后,云服务器可以获取用户的运动数据。运动数据包括用户数据和设备数据。用户可以在进入健身后中登录云服务器,如用户进入健身房中佩戴穿戴设备如手环,手环与用户绑定,通过手环进行登录,云服务器可以跟踪手环位置,从而获取手环采集的用户数据,以及手环所在位置上对应的健身设备测得的设备数据。In specific implementation, after the user enters the gym, the cloud server can obtain the user's exercise data. Movement data includes user data and device data. The user can log in to the cloud server after entering the gym. For example, when the user enters the gym and wears a wearable device such as a bracelet, the bracelet is bound to the user and the user logs in through the bracelet. The cloud server can track the location of the bracelet to obtain the data collected by the bracelet. User data, and device data measured by the corresponding fitness equipment at the location of the bracelet.
其中,用户数据可以为通过手环采集到的心率、体温、运动速度、运动时长等数据。设备数据可以为健身者所使用的设备(可以通过手环所在位置上对应的健身设备确定健身者所使用的设备)测得的数据,以跑步机为例,该数据包括坡度、运动时长、速度、心率等。其中,用户数据和设备数据中可能存储重复数据,如心率,速度等,在此均采集。Among them, user data can include heart rate, body temperature, exercise speed, exercise duration and other data collected through the bracelet. The equipment data can be data measured by the equipment used by the bodybuilder (the equipment used by the bodybuilder can be determined by the corresponding fitness equipment at the location of the bracelet). Taking a treadmill as an example, the data includes slope, exercise duration, and speed. , heart rate, etc. Among them, user data and device data may store duplicate data, such as heart rate, speed, etc., which are all collected here.
可选的,手环还可以用于开启储物柜、记录用户行为、历史健身数据、身体指标、健身教程、身体数据采集等功能。Optionally, the bracelet can also be used to open lockers, record user behavior, historical fitness data, body indicators, fitness tutorials, body data collection and other functions.
用户在进入健身房后,云服务器还可以确定用户所处区域,并获取用户所处区域的室内感应系统的感应数据。其中,云服务器可以通过跟踪手环的位置,确定用户所处区域,即处于健身房中哪一个子区域。然后,云服务器可以根据该子区域内布置的室内感应系统获取感应数据。感应数据包括环境数据和人物数据;其中,环境数据为用户所处区域的环境的数据,如用户所处区域的环境声音的声音能量值、用户所处区域的地板压力等。人物数据为通过用户所处区域的室内感应系统感应到的用户的数据,如用户当前的高度最大值(比如通过测量健身者当前的高度得到的),用户头部最低位置的高度值(如用户下巴距离地面的高度,可以通过对用户进行头部识别,识别得到下巴的位置,从而得到下巴距离地面的高度)。After the user enters the gym, the cloud server can also determine the area where the user is located and obtain the sensing data of the indoor sensing system in the area where the user is located. Among them, the cloud server can determine the area the user is in, that is, which sub-area in the gym, by tracking the location of the bracelet. The cloud server can then obtain sensing data based on the indoor sensing systems deployed in the sub-area. Sensing data includes environmental data and person data; among them, environmental data is data about the environment of the area where the user is located, such as the sound energy value of the ambient sound in the area where the user is located, the floor pressure in the area where the user is located, etc. Character data is the user's data sensed by the indoor sensing system in the area where the user is located, such as the user's current maximum height (for example, obtained by measuring the current height of a bodybuilder), the height value of the lowest position of the user's head (for example, the user's maximum height). The height of the chin from the ground can be obtained by identifying the user's head and identifying the position of the chin, thereby obtaining the height of the chin from the ground).
在一个例子中,在健身器材上包裹吸音海绵层,地板上铺设吸音棉垫,有利于减少聚焦投射的声波向四周反射,减少健身房内相邻子区域之间的干扰。In one example, wrapping fitness equipment with a sound-absorbing sponge layer and laying sound-absorbing cotton mats on the floor can help reduce the reflection of focused projected sound waves to the surroundings and reduce interference between adjacent sub-areas in the gym.
基于上述健身房的结构,即扬声器的分区设置、室内感应系统的布置,以及运动数据和感应数据的采集,针对健身房中的每个健身者均可以通过本实施例的音乐播放方法进行音乐播放。Based on the structure of the gym mentioned above, that is, the partition setting of the speakers, the layout of the indoor induction system, and the collection of motion data and induction data, each fitness person in the gym can play music through the music playing method of this embodiment.
在步骤101中,用户与扬声器之间的关系包括:用户(比如健身者)与扬声器之间的位置关系和/或用户所处区域的环境声音与扬声器当前播放的音频之间的声音关系。In step 101, the relationship between the user and the speaker includes: the positional relationship between the user (such as a bodybuilder) and the speaker and/or the sound relationship between the ambient sound in the area where the user is and the audio currently played by the speaker.
在一个例子中,用户与扬声器之间的位置关系可以包括距离关系,距离关系为比如用户的耳部位置与扬声器的位置之间的距离远近关系。In one example, the positional relationship between the user and the speaker may include a distance relationship. The distance relationship is, for example, the distance relationship between the user's ear position and the position of the speaker.
在另一个例子中,用户与扬声器之间的位置关系可以包括:用户的高度值与扬声器的高度值之间的高度关系,高度关系比如为高度差值的绝对值。其中,用户的高度值h与扬声器的高度值h1均可以通过用户所处区域的室内感应系统感应得到。高度差值的绝对值h2即为h1-h的绝对值。In another example, the positional relationship between the user and the speaker may include: a height relationship between the height value of the user and the height value of the speaker, where the height relationship is, for example, the absolute value of the height difference. Among them, the user's height value h and the speaker's height value h1 can be sensed through the indoor sensing system in the area where the user is located. The absolute value h2 of the height difference is the absolute value of h1-h.
在一个例子中,用户的高度值可以通过如下公式计算得到:In an example, the user's height value can be calculated by the following formula:
h=(用户当前的高度最大值-用户头部最低位置的高度)*2/3+用户头部最低位置的高度;h = (the current maximum height of the user - the height of the lowest position of the user's head) * 2/3 + the height of the lowest position of the user's head;
其中,用户当前的高度最大值可以理解为用户头部最高位置的高度。Among them, the user's current maximum height can be understood as the height of the highest position of the user's head.
在一个例子中,扬声器的高度值可以通过如下公式确定:In one example, the height value of the speaker can be determined by the following formula:
h1=d*tanα+h0h1=d*tanα+h0
其中,h1为扬声器的高度值,α为扬声器中的喇叭与水平面之间的角度,h0为喇叭的高度,d为扬声器与用户的水平距离。其中,d可以通过用户所处区域的室内感应系统感应得到。Among them, h1 is the height value of the speaker, α is the angle between the speaker in the speaker and the horizontal plane, h0 is the height of the speaker, and d is the horizontal distance between the speaker and the user. Among them, d can be sensed through the indoor sensing system in the area where the user is located.
在一个例子中,用户所处区域的环境声音与扬声器当前播放的音频之间的声音关系包括音量关系,比如音量差值关系。In one example, the sound relationship between the ambient sound in the area where the user is located and the audio currently played by the speaker includes a volume relationship, such as a volume difference relationship.
在另一个例子中,用户所处区域的环境声音与扬声器当前播放的音频之间的声音关系包括:环境声音的声音能量值和当前播放的音频的声音能量值之间的声音能量值关系,比如,声音能量值的差值关系、比值关系等。其中,环境声音的声音能量值E1可以通过用户所处区域的室内感应系统感应得到。In another example, the sound relationship between the environmental sound in the area where the user is located and the audio currently played by the speaker includes: the sound energy value relationship between the sound energy value of the environmental sound and the sound energy value of the currently played audio, such as , the difference relationship, ratio relationship of sound energy values, etc. Among them, the sound energy value E1 of the environmental sound can be sensed through the indoor sensing system in the area where the user is located.
在一个例子中,当前播放的音频的声音能量值,可以通过如下公式计算得到:In an example, the sound energy value of the currently played audio can be calculated by the following formula:
其中,E0为当前播放的音频的声音能量值,a1、a2均为预设的系数、f为当前播放的音频的频率均值、Amax为当前播放的音频的振幅最大值、Amin为当前播放的音频的振幅最小值,T为基于当前播放的音频确定的时长标准差。a1和a2可以由本领域技术人员根据实际需要进行设置,比如a1可以在为1到2之间取值,a2可以在330到360之间取值。本实施例中a1可以为1.293,a2可以为346。Among them, E0 is the sound energy value of the currently played audio, a1 and a2 are preset coefficients, f is the frequency mean of the currently played audio, A max is the maximum amplitude of the currently played audio, and A min is the currently played audio. The minimum amplitude value of the audio, T is the duration standard deviation determined based on the currently played audio. a1 and a2 can be set by those skilled in the art according to actual needs. For example, a1 can take a value between 1 and 2, and a2 can take a value between 330 and 360. In this embodiment, a1 can be 1.293, and a2 can be 346.
在一个例子中,上述公式中的时长标准差可以通过如下方式确定:In one example, the duration standard deviation in the above formula can be determined as follows:
首先,获取当前播放的音频的各节奏点。其中,节奏点是根据当前播放的音频的能量值确定的,可以将能量值较大的时间点确定为一个节奏点。比如,预先设置能量值阈值,计算当前播放的音频的各时间点对应的能量值,将如果某个时间点对应的能量值大于能量值阈值,可以将该时间点作为一个节奏点。First, get each rhythm point of the currently playing audio. Among them, the rhythm point is determined based on the energy value of the currently played audio, and a time point with a larger energy value can be determined as a rhythm point. For example, the energy value threshold is set in advance, and the energy value corresponding to each time point of the currently played audio is calculated. If the energy value corresponding to a certain time point is greater than the energy value threshold, the time point can be used as a rhythm point.
其次,根据各节奏点,计算相邻两个节奏点之间的时长,得到时长序列。也就是说,计算后一个节奏点与前一个节奏点之间的时长,得到一个序列,如{2秒,4秒,1秒……}。Secondly, based on each rhythm point, calculate the duration between two adjacent rhythm points to obtain the duration sequence. That is to say, calculate the duration between the next rhythm point and the previous rhythm point to obtain a sequence, such as {2 seconds, 4 seconds, 1 second...}.
然后,确定时长序列中各时长的时长标准差。在具体实现中,可以通过标准差的计算公式计算时长标准差。标准差反映了数据的离散程度,因此,本实施方式中通过时长标准差可以反映当前播放的音频的节奏点的密集程度,时长标准差越小,越密集,也就是说偏向规律性的节奏,时长标准差越大,越疏散,也就是说节奏不规律。Then, determine the duration standard deviation of each duration in the duration sequence. In specific implementation, the duration standard deviation can be calculated using the standard deviation calculation formula. The standard deviation reflects the degree of discreteness of the data. Therefore, in this embodiment, the duration standard deviation can reflect the density of the rhythm points of the currently played audio. The smaller the duration standard deviation, the denser it is, which means that it is biased towards a regular rhythm. The larger the standard deviation of the duration, the more scattered it is, which means the rhythm is irregular.
在步骤102中,根据所述关系即声音关系和/或位置关系,确定扬声器的滤波系数。其中,滤波系数主要用于对用户所处区域的扬声器中播放的音频进行滤波,滤波系数越高,滤波效果越好,滤波系数越低,滤波效果差,通过对用户所处区域的扬声器的滤波系数调整,可以保证扬声器在进行声聚焦之后,用户所处区域的声音聚焦效果最佳,有利于实现了无论用户即健身者走到哪里,声音就跟到哪里的效果。In step 102, the filter coefficient of the speaker is determined according to the relationship, that is, the sound relationship and/or the position relationship. Among them, the filter coefficient is mainly used to filter the audio played in the speakers in the user's area. The higher the filter coefficient, the better the filtering effect. The lower the filter coefficient, the poor filtering effect. By filtering the speakers in the user's area Coefficient adjustment can ensure that after the speaker performs sound focusing, the sound focusing effect in the area where the user is located is the best, which is conducive to achieving the effect that no matter where the user, that is, the fitness person, goes, the sound follows.
在一个例子中,云服务器可以根据声音关系,确定扬声器的滤波系数。具体的,云服务器中可以预存声音关系和滤波系数的对应关系,从而根据预存的对应关系,确定用户所处区域的扬声器的滤波系数。其中,对应关系可以由本领域技术人员根据实际需要设置,也可以通过大数据分析得到。比如,声音关系为用户所处区域的环境声音的音量值与扬声器当前播放的音频的音量值之间的音量差值,音量差值越大,滤波系数越大。可以理解的是,音量差值越大,说明用户所处区域的环境声音的音量值高于扬声器当前播放的音频的音量值的程度越大,需要增大扬声器当前播放的音频的音量值才能抵消环境声音的干扰,提高用户收听扬声器当前播放的音频的体验。In one example, the cloud server can determine the filter coefficient of the speaker based on the sound relationship. Specifically, the cloud server can pre-store the corresponding relationship between the sound relationship and the filter coefficient, so as to determine the filter coefficient of the speaker in the user's area based on the pre-stored corresponding relationship. Among them, the corresponding relationship can be set by those skilled in the art according to actual needs, or can be obtained through big data analysis. For example, the sound relationship is the volume difference between the volume value of the ambient sound in the area where the user is and the volume value of the audio currently played by the speaker. The greater the volume difference, the greater the filter coefficient. It can be understood that the larger the volume difference, the greater the volume value of the ambient sound in the area where the user is located is higher than the volume value of the audio currently played by the speaker, and the volume value of the audio currently played by the speaker needs to be increased to offset it. The interference of ambient sounds improves the user's experience of listening to the audio currently played by the speaker.
在一个例子中,云服务器可以根据位置关系,确定扬声器的滤波系数。具体的,云服务器中可以预存声音关系和滤波系数的对应关系,从而根据预存的对应关系,确定用户所处区域的扬声器的滤波系数。其中,对应关系可以由本领域技术人员根据实际需要设置,也可以通过大数据分析得到。In one example, the cloud server can determine the filter coefficient of the speaker based on the position relationship. Specifically, the cloud server can pre-store the corresponding relationship between the sound relationship and the filter coefficient, so as to determine the filter coefficient of the speaker in the user's area based on the pre-stored corresponding relationship. Among them, the corresponding relationship can be set by those skilled in the art according to actual needs, or can be obtained through big data analysis.
在一个例子中,云服务器可以根据位置关系和声音关系,确定扬声器的滤波系数。比如,位置关系为上述的高度差值的绝对值h2,声音关系为环境声音的声音能量值E1和当前播放的音频的声音能量值E0之间的能量比值E2。如果E2小于1,则滤波系数可以为E2h2,如果E2不小于1,即E2大于或等于1,则滤波系数为0。In one example, the cloud server can determine the filter coefficient of the speaker based on the position relationship and the sound relationship. For example, the position relationship is the absolute value h2 of the above-mentioned height difference, and the sound relationship is the energy ratio E2 between the sound energy value E1 of the ambient sound and the sound energy value E0 of the currently played audio. If E2 is less than 1, the filter coefficient can be E2 h2 . If E2 is not less than 1, that is, E2 is greater than or equal to 1, the filter coefficient is 0.
在一个例子中,步骤102还可以通过如下子步骤实现,参考图2,包括:In one example, step 102 can also be implemented through the following sub-steps, with reference to Figure 2, including:
步骤201:获取用户当前的运动数据,并根据运动数据确定调整系数。Step 201: Obtain the user's current motion data and determine the adjustment coefficient based on the motion data.
步骤202:根据调整系数和关系,确定扬声器的滤波系数。Step 202: Determine the filter coefficient of the speaker according to the adjustment coefficient and the relationship.
其中,步骤201中的运动数据包括运动时长和/或运动速度,调整系数包括第一调整系数和/或第二调整系数,根据运动数据确定调整系数,包括:根据用户当前的运动时长与预设的运动时长之间的时长差值,确定与时长差值对应的第一调整系数;和/或,根据用户当前的运动速度与预设的运动速度之间的速度差值,确定与速度差值对应的第二调整系数。The motion data in step 201 includes motion duration and/or motion speed, and the adjustment coefficient includes a first adjustment coefficient and/or a second adjustment coefficient. Determining the adjustment coefficient according to the motion data includes: according to the user's current motion duration and a preset value. The duration difference between the movement durations is used to determine the first adjustment coefficient corresponding to the duration difference; and/or, based on the speed difference between the user's current movement speed and the preset movement speed, the speed difference is determined The corresponding second adjustment coefficient.
在一个例子中,运动数据包括运动时长,调整系数包括第一调整系数。第一调整系数的确定方式可以为:确定用户当前的运动时长与预设的运动时长之间的时长差值,根据时长差值和预设的第一对应关系,确定与时长差值对应的第一调整系数。其中,预设的运动时长可以为期望的运动时长,用户可以提前预设自己希望运动的时长,用户当前的运动时长与预设的运动时长之间的时长差值可以体现用户实际运动的时长和希望运动的时长的差距。第一对应关系可以由本领域技术人员根据实际需要进行设置,或者通过大数据分析得到。比如,时长差值为当前的运动时长减去预设的运动时长,则时长差值越大,第一调整系数越小。也就是说,当前的运动时长大于预设的运动时长时,说明用户已经达到了期望的运动时长,此时时长差值为正数,当前的运动时长越大(正的时长差值越大),第一调整系数越小,以表明希望用户运动缓和一点;当前的运动时长小于预设的运动时长时,说明用户还未达到期望的运动时长,此时,时长差值为负数,当前的运动时长越大(负的时长差值越大),第一调整系数越小。In one example, the exercise data includes exercise duration, and the adjustment coefficient includes a first adjustment coefficient. The first adjustment coefficient may be determined by: determining the duration difference between the user's current exercise duration and the preset exercise duration, and determining a third corresponding to the duration difference based on the duration difference and the preset first correspondence. An adjustment factor. Among them, the preset exercise duration can be the desired exercise duration, and the user can preset the duration of exercise he wants in advance. The duration difference between the user's current exercise duration and the preset exercise duration can reflect the user's actual exercise duration and Hope the difference in duration of exercise. The first corresponding relationship can be set by those skilled in the art according to actual needs, or obtained through big data analysis. For example, the duration difference is the current exercise duration minus the preset exercise duration. The greater the duration difference, the smaller the first adjustment coefficient. That is to say, when the current exercise duration is greater than the preset exercise duration, it means that the user has reached the desired exercise duration. At this time, the duration difference is a positive number. The greater the current exercise duration (the greater the positive duration difference). , the smaller the first adjustment coefficient is, it indicates that it is hoped that the user's movement will be slower; when the current movement duration is less than the preset movement duration, it means that the user has not reached the desired movement duration. At this time, the duration difference is a negative number, and the current movement The larger the duration (the larger the negative duration difference is), the smaller the first adjustment coefficient is.
在一个例子中,运动数据包括运动速度,调整系数包括第二调整系数。第二调整系数的确定方式可以为:确定用户当前的运动速度与预设的运动速度之间的速度差值,根据速度差值和预设的第二对应关系,确定与速度差值对应的第二调整系数。其中,预设的运动速度可以为期望的运动速度,用户可以提前预设自己希望运动的速度,用户当前的运动速度与预设的运动速度之间的速度差值可以体现用户实际运动的速度和希望运动的速度的差距。第二对应关系可以由本领域技术人员根据实际需要进行设置,或者通过大数据分析得到。用户当前的运动速度大于预设的运动速度时,随着当前的运动速度的增加,第二调整系数越来越小。在具体实现中,随着当前的运动速度的增加,第二调整系数越来越小。In one example, the motion data includes motion speed, and the adjustment coefficient includes a second adjustment coefficient. The second adjustment coefficient may be determined by: determining the speed difference between the user's current movement speed and the preset movement speed, and determining the second adjustment coefficient corresponding to the speed difference according to the speed difference and the preset second correspondence. 2. Adjustment coefficient. Among them, the preset movement speed can be the desired movement speed, and the user can preset the speed at which he or she wants to move in advance. The speed difference between the user's current movement speed and the preset movement speed can reflect the user's actual movement speed and Hope the difference in speed of movement. The second corresponding relationship can be set by those skilled in the art according to actual needs, or obtained through big data analysis. When the user's current movement speed is greater than the preset movement speed, as the current movement speed increases, the second adjustment coefficient becomes smaller and smaller. In specific implementation, as the current movement speed increases, the second adjustment coefficient becomes smaller and smaller.
在一个例子中,如果能量比值小于1,云服务器可以根据第一调整系数、能量比值和高度差的绝对值,确定扬声器的滤波系数。比如,通过如下公式确定:In one example, if the energy ratio is less than 1, the cloud server can determine the filter coefficient of the speaker based on the first adjustment coefficient, the energy ratio and the absolute value of the height difference. For example, it is determined by the following formula:
β=t1*E2h2 β=t1*E2 h2
其中,β为滤波系数,t1为第一调整系数,E2为能量比值,h2为高度差的绝对值。Among them, β is the filter coefficient, t1 is the first adjustment coefficient, E2 is the energy ratio, and h2 is the absolute value of the height difference.
在一个例子中,如果能量比值小于1,云服务器可以根据第二调整系数、能量比值和高度差的绝对值,确定扬声器的滤波系数。比如,通过如下公式确定:In one example, if the energy ratio is less than 1, the cloud server may determine the filter coefficient of the speaker based on the second adjustment coefficient, the energy ratio and the absolute value of the height difference. For example, it is determined by the following formula:
β=t2*E2h2 β=t2*E2 h2
其中,β为滤波系数,t2为第二调整系数,E2为能量比值,h2为高度差的绝对值。Among them, β is the filter coefficient, t2 is the second adjustment coefficient, E2 is the energy ratio, and h2 is the absolute value of the height difference.
在一个例子中,如果能量比值小于1,云服务器可以根据第一调整系数、第二调整系数、能量比值和高度差的绝对值,确定扬声器的滤波系数。比如,通过如下公式确定:In one example, if the energy ratio is less than 1, the cloud server can determine the filter coefficient of the speaker based on the first adjustment coefficient, the second adjustment coefficient, the energy ratio, and the absolute value of the height difference. For example, it is determined by the following formula:
β=t1*t2*E2h2 β=t1*t2*E2 h2
在一个例子中,如果能量比值大于或等于1,云服务器可以确定扬声器的滤波系数为0。In one example, if the energy ratio is greater than or equal to 1, the cloud server may determine that the filter coefficient of the speaker is 0.
需要说明的是,上述示例中介绍了一个用户所处区域即一个子区域的扬声器的滤波系数的确定方式,在具体实现中,云服务器可以确定多个用户分别所处的多个子区域的扬声器的滤波系数,即每个扬声器均有自己的滤波系数。It should be noted that the above example introduces how to determine the filter coefficients of the speakers in the area where a user is located, that is, a sub-area. In a specific implementation, the cloud server can determine the filter coefficients of the speakers in multiple sub-areas where multiple users are located. Filter coefficient, that is, each speaker has its own filter coefficient.
在具体实现中,云服务器在确定扬声器的滤波系数后,可以将滤波系数发送给扬声器,使得扬声器可以基于该滤波系数对当前播放的音频进行滤波,并聚焦滤波后的音频至用户所处区域,有利于保证音频声音最大位置处于用户耳朵处,并跟随用户移动。In a specific implementation, after determining the filter coefficient of the speaker, the cloud server can send the filter coefficient to the speaker, so that the speaker can filter the currently played audio based on the filter coefficient and focus the filtered audio to the area where the user is located. It is helpful to ensure that the maximum position of the audio sound is at the user's ears and follows the user's movement.
在一个例子中,云服务器可以基于用户所处区域,确定用户所处区域摆放的健身器材,从而根据确定的健身器材确定运动种类,再通过用户的运动体征监测数据,从用户个人数据库的音频播放列表中自动选择节奏合适的音频,通过对应不同滤波系数的扬声器进行播放,使得位于带有声聚焦系统的扬声器下方的用户能够收听音频。In one example, the cloud server can determine the fitness equipment placed in the user's area based on the area where the user is located, thereby determining the type of exercise based on the determined fitness equipment, and then monitoring the user's sports signs to obtain the audio from the user's personal database. Audio with a suitable rhythm is automatically selected from the playlist and played through speakers corresponding to different filter coefficients, so that users located under the speakers with sound focusing systems can listen to the audio.
另外,用户还可以通过智能手机App连接音乐云系统的服务器,通过App与音乐云系统进行交互,定制专属的健身歌单、音乐播放模式和音乐切换模式,其中音乐播放模式能够选择音乐的持续时间,音乐切换模式能够选择通过主动按手环按钮或者通过手环内置的加速度传感器定制的专属切歌手势进行切歌。In addition, users can also connect to the server of the music cloud system through the smartphone App, interact with the music cloud system through the App, and customize exclusive fitness playlists, music playback modes and music switching modes. The music playback mode can select the duration of the music. , the music switching mode allows you to choose to switch songs by actively pressing the bracelet button or by using an exclusive singing gesture customized by the built-in accelerometer of the bracelet.
在一个例子中,可以根据采集到的用户的运动数据做出报警提醒,避免用户受伤。如语音提示:您已持续健身超过40分钟,为了避免受伤,建议您休息5分钟,并做好腿部拉伸。In one example, an alarm reminder can be made based on the collected user's motion data to avoid user injury. Such as the voice prompt: You have been exercising for more than 40 minutes. To avoid injury, it is recommended that you rest for 5 minutes and stretch your legs.
需要说明的是,本实施方式中的上述各示例均为方便理解进行的举例说明,并不对本发明的技术方案构成限定。It should be noted that the above-mentioned examples in this embodiment are illustrations for convenience of understanding and do not limit the technical solution of the present invention.
本实施方式中,用户与扬声器之间的位置关系可以反映用户与扬声器之间的距离远近,用户所处区域的环境声音与当前播放的音频之间的声音关系可以反映用户实际可以听到的播放的音频受环境声音的干扰程度,结合位置关系和/或声音关系确定的滤波系数,有利于使得滤波后的音乐适应用户与扬声器之间位置关系和/或降低环境声音对播放的音频的干扰程度。聚焦滤波后的音频至用户所处区域,即滤波后的音乐聚焦至用户所处区域,尽可能使得该用户能够听到滤波后的音乐,而处于其他区域的其他用户几乎听不到滤波后的音乐,避免用户所处区域设置的扬声器播放的音乐对处于其他区域的其他用户的影响,有利于通过设置在不同区域的扬声器为处于不同区域的用户播放不同的音乐,从而适应不同用户的个人喜好。本实施例中的音乐播放方法,使得用户可以无需佩戴耳机脱离需要随身携带的音乐播放设备,就可以收听到针对用户播放的音乐,为用户提供了便捷,当用户处于健身区域时,有利于提高用户的健身体验。In this embodiment, the positional relationship between the user and the speaker can reflect the distance between the user and the speaker, and the sound relationship between the environmental sound in the user's area and the currently played audio can reflect the playback that the user can actually hear. The degree of interference of audio by environmental sounds, and the filter coefficient determined by combining the positional relationship and/or sound relationship, can help make the filtered music adapt to the positional relationship between the user and the speaker and/or reduce the degree of interference of environmental sounds on the played audio. . Focus the filtered audio to the area where the user is, that is, focus the filtered music to the area where the user is, so that the user can hear the filtered music as much as possible, while other users in other areas can hardly hear the filtered music. Music, to avoid the impact of music played by speakers set in the user's area on other users in other areas, and to facilitate the use of speakers set in different areas to play different music for users in different areas, thereby adapting to the personal preferences of different users . The music playing method in this embodiment allows the user to listen to the music played for the user without wearing headphones and leaving the music playing device that needs to be carried around, which provides convenience for the user and is conducive to improving the performance when the user is in the fitness area. User’s fitness experience.
本发明的第二实施方式涉及一种音频播放方法。下面对本实施方式的音频播放方法的实现细节进行具体的说明,以下内容仅为方便理解提供的实现细节,并非实施本方案的必须。The second embodiment of the present invention relates to an audio playing method. The implementation details of the audio playback method of this embodiment are described in detail below. The following content is only provided for the convenience of understanding and is not necessary for implementation of this solution.
本实施方式中的音频播放方法的流程图如图3所示,包括:The flow chart of the audio playback method in this embodiment is shown in Figure 3, including:
步骤301:确定用户与扬声器之间的关系。Step 301: Determine the relationship between the user and the speaker.
步骤302:根据所述关系,确定扬声器的滤波系数。Step 302: Determine the filter coefficient of the speaker according to the relationship.
步骤303:根据滤波系数对扬声器当前播放的音频进行滤波,并聚焦滤波后的音频至用户所处区域。Step 303: Filter the audio currently played by the speaker according to the filter coefficient, and focus the filtered audio to the area where the user is located.
其中,步骤301至步骤303与第一实施方式中步骤101至步骤103大致相同,为避免重复,此处不再赘述。Among them, steps 301 to 303 are substantially the same as steps 101 to 103 in the first embodiment. To avoid repetition, they will not be described again here.
步骤304:在扬声器当前播放的音频被播放至预设进度时,获取用户的当前心率值和推荐心率值。Step 304: When the audio currently played by the speaker is played to the preset progress, obtain the user's current heart rate value and recommended heart rate value.
步骤305:根据当前心率值和推荐心率值,基于列表中确定当前播放的音频被播放完毕后扬声器播放的音频。Step 305: According to the current heart rate value and the recommended heart rate value, determine the audio played by the speaker after the currently played audio is played based on the list.
其中,步骤304中的预设进度可以根据实际需要进行设置,比如设置为90%。Among them, the preset progress in step 304 can be set according to actual needs, for example, set to 90%.
在一个例子中,云服务器可以通过用户佩戴的手环获取用户的当前心率值,也可以通过用户所使用的健身设备获取用户的当前心率值。如果,同时得到手环测得的当前心率值和健身设备测得的当前心率值且两个设备测得的当前心率值不相同,则可以将选择一个最大的作为用户的当前心率值。In one example, the cloud server can obtain the user's current heart rate value through the bracelet worn by the user, or can obtain the user's current heart rate value through the fitness equipment used by the user. If the current heart rate value measured by the bracelet and the current heart rate value measured by the fitness device are obtained at the same time and the current heart rate values measured by the two devices are different, the largest one can be selected as the user's current heart rate value.
在一个例子中,用户的推荐心率值的获取方式可以为,通过如下公式计算得到:In an example, the user's recommended heart rate value can be obtained by calculating it through the following formula:
推荐心率值=注册时心率值+(B1-B2×年龄-登录时心率)×[B3+运动年限/(年龄-B4)]。Recommended heart rate value = heart rate value at registration + (B1-B2×age-heart rate at login)×[B3+exercise years/(age-B4)].
其中,注册时心率值可以理解为:用户在健身房中注册为会员时采集的心率值,登录时心率可以理解为用户在进入健身房后登录云服务器时的心率值,运动年限可以为用户在登录云服务器后,自己选择的年限。其中,B1、B2、B3、B4为预设的系数,B1的取值范围可以为190~250,B2的取值范围可以为0~1,B3的取值范围可以为0~1,B4的取值范围可以为5~15。在一个例子中,这几个系数的取值可以为:B1=220,B2=2/3,B3=0.6,B4=10。Among them, the heart rate value when registering can be understood as: the heart rate value collected when the user registers as a member in the gym. The heart rate value when logging in can be understood as the heart rate value when the user logs into the cloud server after entering the gym. The number of years of exercise can be the heart rate value when the user logs in to the cloud server. After the server, you choose the number of years. Among them, B1, B2, B3, and B4 are preset coefficients. The value range of B1 can be 190~250, the value range of B2 can be 0~1, the value range of B3 can be 0~1, and the value range of B4 can be 0~1. The value range can be 5~15. In an example, the values of these coefficients can be: B1=220, B2=2/3, B3=0.6, B4=10.
在一个例子中,步骤305中的列表可以为用户对应的播放列表,比如通过音乐云系统创建的个人数据库,个人数据库包括播放歌单、音乐风格喜好和音频播放设置喜好。若用户已预先设置播放列表,则读取该播放列表。若用户未设置播放列表,则获取用户年龄、职业(这些数据是在通过手环注册时填写的)等确定跟该用户相似的人群均喜欢听的n首歌曲,将其作为用户对应的播放列表。In one example, the list in step 305 can be a playlist corresponding to the user, such as a personal database created through the music cloud system. The personal database includes playlists, music style preferences, and audio playback setting preferences. If the user has set a playlist in advance, the playlist is read. If the user does not set a playlist, obtain the user's age, occupation (these data are filled in when registering through the bracelet) and other n songs that people similar to the user like to listen to are determined, and use them as the user's corresponding playlist. .
在一个例子中,云服务器确定当前播放的歌曲(即音频)被播放至90%(预设进度)时,可以结合用户的当前心率值和推荐心率值,判断用户对应的播放列表中当前歌曲的下一首歌曲是保留还是删除。如果判断结果是保留,即播放列表中当前歌曲的下一首歌曲是当前播放的歌曲被播放完毕后扬声器需播放的歌曲;如果判断结果是删除,则继续判断再下一首歌曲是保留还是删除。也就是说,如果播放列表中后续歌曲中存在保留的歌曲,则下一首即播放该歌曲,若播放列表中不存在保留的歌曲,则从跟用户相似的用户播放的歌曲中,随机选择一曲,确定是否保留,如果保留,则将该歌曲加入播放列表中,作为播放的下一首歌曲,若不保留,则再随机选择一曲,直至找到下一首歌曲。In one example, when the cloud server determines that the currently playing song (i.e. audio) has been played to 90% (preset progress), it can determine the current song in the user's corresponding playlist based on the user's current heart rate value and the recommended heart rate value. Whether the next song should be kept or deleted. If the judgment result is to retain, that is, the next song of the current song in the playlist is the song that the speaker needs to play after the currently playing song is played; if the judgment result is to delete, then continue to judge whether the next song is to be retained or deleted. . That is to say, if there is a reserved song in the subsequent songs in the playlist, the song will be played next. If there is no reserved song in the playlist, a song will be randomly selected from the songs played by users similar to the user. song, determine whether to retain it. If it is retained, the song is added to the playlist as the next song to be played. If it is not retained, another song is randomly selected until the next song is found.
在一个例子中,确定当前播放的音频被播放完毕后扬声器播放的音频的方式可以为:若当前心率值大于推荐心率值,基于列表确定与当前播放的音频最近的目标音频,并将目标音频作为当前播放的音频被播放完毕后扬声器播放的音频;其中,目标音频的推荐播放值小于或等于预设播放阈值,推荐播放值用于表征兴奋程度。最近的目标音频使得可以按照列表中音频的顺序依次确定列表中的音频是否是目标音频,找到最近的目标音频后无需再对列表中的其他音频进行是否是目标音频的判断,有利于加快选择出目标音频的速度。In one example, the method of determining the audio played by the speaker after the currently played audio is completed is: if the current heart rate value is greater than the recommended heart rate value, determine the target audio closest to the currently played audio based on the list, and use the target audio as The audio played by the speaker after the currently played audio has been played; where the recommended playback value of the target audio is less than or equal to the preset playback threshold, and the recommended playback value is used to represent the degree of excitement. The nearest target audio allows you to determine whether the audio in the list is the target audio in sequence according to the order of the audio in the list. After finding the nearest target audio, there is no need to judge whether other audios in the list are target audio, which is helpful to speed up the selection. The speed of the target audio.
在一个例子中,基于列表确定的与当前播放的音频最近的目标音频可以为,列表中排在当前播放的音频之后的各音频中离当前播放的音频最近的目标音频,有利于避免之前播放过的音频被再次播放,提高用户的听觉体验。In one example, the target audio closest to the currently played audio determined based on the list can be the target audio closest to the currently played audio among the audios ranked after the currently played audio in the list, which is beneficial to avoid previously played audio. The audio is played again, improving the user's listening experience.
在另一个例子中,基于列表确定的与当前播放的音频最近的目标音频可以为,列表中除当前播放的音频之外的各音频中离当前播放的音频最近的目标音频,即目标音频可能位于当前播放的音频之前,也可能位于当前播放的音频之后。有利于扩大寻找目标音频的范围,提高寻找到目标音频的可能性。In another example, the target audio closest to the currently played audio determined based on the list may be the target audio closest to the currently played audio among the audios in the list except the currently played audio, that is, the target audio may be located at Before the currently playing audio, it may also come after the currently playing audio. It is helpful to expand the scope of finding the target audio and improve the possibility of finding the target audio.
在一个例子中,如果目标音频和当前播放的音频之间还存在其他音频,则删除目标音频和当前播放的音频之间的音频。In one example, if there is other audio between the target audio and the currently playing audio, delete the audio between the target audio and the currently playing audio.
在一个例子中,寻找目标音频的方式可以参考图4:包括:In an example, the way to find the target audio can refer to Figure 4: including:
步骤401:判断当前心率值是否大于推荐心率值;如果是,则执行步骤402,否则执行步骤403。Step 401: Determine whether the current heart rate value is greater than the recommended heart rate value; if so, execute step 402, otherwise execute step 403.
步骤402:获取列表中当前播放的音频的下一音频的推荐播放值。Step 402: Obtain the recommended play value of the next audio of the currently played audio in the list.
其中,推荐播放值用于表征下一音频的兴奋程度,兴奋程度越高的音频,推荐播放至越大。Among them, the recommended playback value is used to represent the excitement level of the next audio. The higher the excitement level of the audio, the greater the recommended playback value.
在一个例子中,推荐播放值的确定方式可以为:云服务器获取列表中待确定推荐播放值的音频的各节奏点,根据各节奏点,计算相邻两个节奏点之间的时长,得到时长序列;确定时长序列中各时长的时长标准差;根据时长标准差和用于表征兴奋程度的标签值,确定推荐播放值。其中,一首音频的时长标准差的计算方式在第一实施方式中已经描述过,为避免重复此处不再赘述。下面主要对根据时长标准差和用于表征下一音频的兴奋程度的标签值,确定下一音频的推荐播放值的方式进行具体说明:In one example, the recommended playback value can be determined as follows: the cloud server obtains each rhythm point of the audio whose recommended playback value is to be determined in the list, and based on each rhythm point, calculates the duration between two adjacent rhythm points to obtain the duration. sequence; determine the duration standard deviation of each duration in the duration sequence; determine the recommended playback value based on the duration standard deviation and the tag value used to represent the degree of excitement. The calculation method of the duration standard deviation of an audio piece has been described in the first embodiment, and will not be described again to avoid repetition. The following mainly explains the method of determining the recommended playback value of the next audio based on the standard deviation of the duration and the label value used to characterize the excitement of the next audio:
在一个例子中,下一音频的推荐播放值可以为时长标准差与用于表征下一音频的兴奋程度的标签值的乘积。其中,标签为舒缓、摇滚等,标签值为根据预设的标签与兴奋程度的对应关系得到的一个值,该值越小说明越兴奋。标签值是根据大数据分析得到的,也可以是人工设置的,本实施例对此不做具体限定。In one example, the recommended playing value of the next audio may be the product of the duration standard deviation and the label value used to characterize the excitement level of the next audio. Among them, the label is soothing, rock, etc., and the label value is a value obtained based on the corresponding relationship between the preset label and the degree of excitement. The smaller the value, the more excited it is. The tag value is obtained based on big data analysis, or may be set manually, which is not specifically limited in this embodiment.
步骤403:将下一音频确定为目标音频。Step 403: Determine the next audio as the target audio.
也就是说,若当前心率值大于推荐心率值,且推荐播放值小于或等于预设播放阈值,则在播放列表中保留下一音频。That is to say, if the current heart rate value is greater than the recommended heart rate value and the recommended playback value is less than or equal to the preset playback threshold, the next audio will be retained in the playlist.
步骤404:判断推荐播放值是否小于或等于预设播放阈值;如果是,则执行步骤403,否则执行步骤405。Step 404: Determine whether the recommended playback value is less than or equal to the preset playback threshold; if so, execute step 403; otherwise, execute step 405.
其中,预设播放阈值可以根据实际需要进行设置,本实施例对此不做具体限定。The preset playback threshold can be set according to actual needs, which is not specifically limited in this embodiment.
步骤405:继续在列表中寻找目标音频。Step 405: Continue to search for the target audio in the list.
也就是说,若当前心率值大于推荐心率值,且推荐播放值大于预设播放阈值,则可以删除下一音频,继续判断播放列表中下一音频后面的音频为保留还是删除,如果得到保留的音频,则将保留的音频作为目标音频。如果列表中不存在目标音频,还可以从跟用户相似的用户播放的音频中,随机选择一曲,确定是否保留,如果保留,则将该歌曲加入列表中,作为目标音频,若不保留,则再随机选择一曲,直至找到目标音频。That is to say, if the current heart rate value is greater than the recommended heart rate value, and the recommended play value is greater than the preset play threshold, the next audio can be deleted, and the next audio in the play list can be continued to be judged as to be retained or deleted. If the retained audio, the retained audio will be used as the target audio. If the target audio does not exist in the list, you can also randomly select a song from the audio played by users similar to the user to determine whether to retain it. If it is retained, the song will be added to the list as the target audio. If it is not retained, then Select another random song until you find the target audio.
在另一个例子中,确定当前播放的音频被播放完毕后扬声器播放的音频的方式可以为:获取当前心率值和推荐心率值的心率差值,根据列表中除当前播放的音频之外的各音频的推荐播放值,确定与心率差值匹配的音频,并将匹配的音频作为当前播放的音频被播放完毕后扬声器播放的音频,推荐播放值用于表征兴奋程度。推荐播放值的计算方式上面已经阐述过,此处不再赘述。这种方式有利于参考列表中除当前播放的音频之外的所有音频,从而得到与心率差值最匹配的音频,使得播放的音频能够很好的适应用户当前的心率。In another example, the method of determining the audio played by the speaker after the currently played audio is finished is: obtaining the heart rate difference between the current heart rate value and the recommended heart rate value, based on each audio in the list except the currently played audio. The recommended playback value determines the audio that matches the heart rate difference, and uses the matched audio as the audio played by the speaker after the currently played audio is played. The recommended playback value is used to represent the degree of excitement. The calculation method of the recommended playback value has been explained above and will not be repeated here. This method is conducive to referring to all audios in the list except the currently playing audio, so as to obtain the audio that best matches the heart rate difference, so that the played audio can well adapt to the user's current heart rate.
比如,可以预先设置心率差值与推荐播放值的预设关系,根据该预设关系选择与用户的心率差值对应的目标推荐播放值,获取列表中除当前播放的音频之外的各音频的推荐播放值,最终匹配的音频的推荐播放值等于或接近上述目标推荐播放值。如果最终匹配的音频为多个,则可以在多个音频中随机选择一个作为当前播放的音频被播放完毕后扬声器播放的音频。上述心率差值与推荐播放值的预设关系可以根据实际需要进行设置,也可以通过大数据分析得到,本实施方式对此不做具体限定。For example, a preset relationship between the heart rate difference and the recommended play value can be set in advance, and the target recommended play value corresponding to the user's heart rate difference can be selected based on the preset relationship, and the values of each audio in the list except the currently played audio can be obtained. Recommended playback value. The recommended playback value of the final matched audio is equal to or close to the above target recommended playback value. If there are multiple audios that are ultimately matched, one of the multiple audios can be randomly selected as the audio played by the speaker after the currently playing audio is played. The above-mentioned preset relationship between the heart rate difference value and the recommended playback value can be set according to actual needs, or can be obtained through big data analysis, which is not specifically limited in this embodiment.
通过上述方法,可以保证当前播放的音频与用户的当前心率值匹配,在当前心率值较高的情况下播放兴奋程度低的歌曲,比如舒缓歌曲,在当前心率值较低的情况下播放兴奋程度高的歌曲,比如摇滚歌曲,有利于提高用户的运动体验。Through the above method, it can be ensured that the currently played audio matches the user's current heart rate value. When the current heart rate value is high, songs with low excitement, such as soothing songs, are played. When the current heart rate value is low, songs with low excitement are played. High-pitched songs, such as rock songs, are helpful to improve the user's sports experience.
本实施方式中,用户可以脱离需要随身携带的音乐播放设备,并且根据每个子区域对应的运动种类和用户健身时的当前心率值更换扬声器播放的音频,并结合滤波系数对扬声器播放的音频进行滤波,以使得可以调整音频的声音大小和声音方向,无需用户分心操作,大大提高了用户健身体验。In this implementation, the user can detach from the music playback device that needs to be carried around, and change the audio played by the speaker according to the type of exercise corresponding to each sub-area and the user's current heart rate value during exercise, and filter the audio played by the speaker based on the filter coefficients. , so that the sound size and sound direction of the audio can be adjusted without the user's distraction, which greatly improves the user's fitness experience.
在一个例子中,室内感应系统可以将感应数据上报给云端及健身房后台端,用户佩戴的手环将采集的用户数据上报至云端(即云服务器)及健身房后台端。健身房后台端通过音乐云系统给该健身区域播放相应背景音乐。此时云端可结合用户的运动种类、运动强度以及手环传输的运动体征监测数据选择节奏适合的音乐进行播放,并且能够在用户开始健身时播放,健身停止时音乐逐渐停止,使用户在运动时脱离音乐播放设备,提高健身时的用户体验。健身歌单可以在平时通过智能手机app编辑歌单,健身时能够自动播放歌单内适合的歌曲,然后自动切换适合用户喜好和运动节奏的随机音乐。云端可以根据用户的健身计划,提供语音的训练教程,让用户跟练。In one example, the indoor sensing system can report sensing data to the cloud and the gym backend, and the bracelet worn by the user reports the collected user data to the cloud (i.e., cloud server) and the gym backend. The backend of the gym plays corresponding background music to the fitness area through the music cloud system. At this time, the cloud can select music with a suitable rhythm for playback based on the user's exercise type, exercise intensity, and sports sign monitoring data transmitted by the bracelet, and can play it when the user starts exercising. When the exercise stops, the music gradually stops, allowing the user to exercise while exercising. It is separated from the music playing equipment and improves the user experience during fitness. The fitness playlist can be edited through the smartphone app at ordinary times. During exercise, it can automatically play suitable songs in the playlist, and then automatically switch to random music that suits the user's preferences and exercise rhythm. The cloud can provide voice training tutorials based on the user's fitness plan, allowing users to follow along.
在一个例子中,在健身器材上设置有运动数据采集系统,该系统内还设有无线通讯模块,能够将健身器材采集的用户运动数据上传至云端的选歌系统,提高选歌的精确性,并且还能够在个人数据库中建立用户的健身档案,记录用户健身数据。可选的,根据用户的健身数据,可制作出“专业训练课程”的背景音乐,进行单人健身时的专业指导。In one example, a sports data collection system is installed on fitness equipment. The system is also equipped with a wireless communication module, which can upload user movement data collected by the fitness equipment to the song selection system in the cloud to improve the accuracy of song selection. And it can also establish the user's fitness profile in the personal database and record the user's fitness data. Optionally, based on the user's fitness data, background music for "professional training courses" can be produced to provide professional guidance for individual fitness.
需要说明的是,本实施方式中的上述各示例均为方便理解进行的举例说明,并不对本发明的技术方案构成限定。It should be noted that the above-mentioned examples in this embodiment are illustrations for convenience of understanding and do not limit the technical solution of the present invention.
本实施方式中,结合下一音频的兴奋程度、用户的当前心率值以及对用户的推荐心率值,能够更加合理的确定下一音频是否为当前播放的音频被播放完毕后扬声器需播放的音频。比如,当前心率值大于推荐心率值,即当前心率值较大,为了使用户的当前心率值降下来,如果下一音频的兴奋程度较低,可以将下一音频作为接下来扬声器要播放的音频,提高用户听见下一音频后,心率值降下来的可能性,有利于提高用户的健身体验。In this embodiment, by combining the excitement level of the next audio, the user's current heart rate value and the recommended heart rate value for the user, it can be more reasonably determined whether the next audio is the audio that the speaker needs to play after the currently played audio is completed. For example, the current heart rate value is greater than the recommended heart rate value, that is, the current heart rate value is larger. In order to reduce the user's current heart rate value, if the excitement level of the next audio is low, the next audio can be used as the audio to be played by the next speaker. , increasing the possibility that the user's heart rate will drop after hearing the next audio, which is conducive to improving the user's fitness experience.
上面各种方法的步骤划分,只是为了描述清楚,实现时可以合并为一个步骤或者对某些步骤进行拆分,分解为多个步骤,只要包括相同的逻辑关系,都在本专利的保护范围内;对算法中或者流程中添加无关紧要的修改或者引入无关紧要的设计,但不改变其算法和流程的核心设计都在该专利的保护范围内。The steps of the various methods above are divided just for the purpose of clear description. During implementation, they can be combined into one step or some steps can be split into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this patent. ; Adding insignificant modifications or introducing insignificant designs to the algorithm or process without changing the core design of the algorithm and process are within the scope of protection of this patent.
本发明第三实施方式涉及一种电子设备,如图5所示,包括至少一个处理器501;以及,与至少一个处理器501通信连接的存储器502;其中,存储器502存储有可被至少一个处理器501执行的指令,指令被至少一个处理器501执行,以使至少一个处理器501能够执行第一、或第二实施方式中的音频播放方法。The third embodiment of the present invention relates to an electronic device, as shown in Figure 5, including at least one processor 501; and a memory 502 communicatively connected with the at least one processor 501; wherein the memory 502 stores information that can be processed by at least one The instructions executed by the processor 501 are executed by at least one processor 501, so that the at least one processor 501 can execute the audio playback method in the first or second embodiment.
其中,存储器502和处理器501采用总线方式连接,总线可以包括任意数量的互联的总线和桥,总线将一个或多个处理器501和存储器502的各种电路连接在一起。总线还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路连接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口在总线和收发机之间提供接口。收发机可以是一个元件,也可以是多个元件,比如多个接收器和发送器,提供用于在传输介质上与各种其他装置通信的单元。经处理器501处理的数据通过天线在无线介质上进行传输,进一步,天线还接收数据并将数据传送给处理器501。The memory 502 and the processor 501 are connected using a bus. The bus may include any number of interconnected buses and bridges. The bus connects various circuits of one or more processors 501 and the memory 502 together. The bus may also connect various other circuits together such as peripherals, voltage regulators, and power management circuits, which are all well known in the art and therefore will not be described further herein. The bus interface provides the interface between the bus and the transceiver. A transceiver may be one element or may be multiple elements, such as multiple receivers and transmitters, providing a unit for communicating with various other devices over a transmission medium. The data processed by the processor 501 is transmitted on the wireless medium through the antenna. Furthermore, the antenna also receives the data and transmits the data to the processor 501.
处理器501负责管理总线和通常的处理,还可以提供各种功能,包括定时,外围接口,电压调节、电源管理以及其他控制功能。而存储器502可以被用于存储处理器501在执行操作时所使用的数据。Processor 501 is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interfaces, voltage regulation, power management, and other control functions. The memory 502 may be used to store data used by the processor 501 when performing operations.
本发明第四实施方式涉及一种计算机可读存储介质,存储有计算机程序。计算机程序被处理器执行时实现上述方法实施例。The fourth embodiment of the present invention relates to a computer-readable storage medium storing a computer program. The above method embodiments are implemented when the computer program is executed by the processor.
即,本领域技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。That is, those skilled in the art can understand that all or part of the steps in the methods of the above embodiments can be completed by instructing relevant hardware through a program. The program is stored in a storage medium and includes several instructions to cause a device ( It may be a microcontroller, a chip, etc.) or a processor (processor) that executes all or part of the steps of the methods described in various embodiments of this application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code.
本领域的普通技术人员可以理解,上述各实施方式是实现本发明的具体实施例,而在实际应用中,可以在形式上和细节上对其作各种改变,而不偏离本发明的精神和范围。Those of ordinary skill in the art can understand that the above-mentioned embodiments are specific examples for realizing the present invention, and in practical applications, various changes can be made in form and details without departing from the spirit and spirit of the present invention. scope.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110090450.4A CN112765395B (en) | 2021-01-22 | 2021-01-22 | Audio playback method, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110090450.4A CN112765395B (en) | 2021-01-22 | 2021-01-22 | Audio playback method, electronic device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112765395A CN112765395A (en) | 2021-05-07 |
CN112765395B true CN112765395B (en) | 2023-09-19 |
Family
ID=75706723
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110090450.4A Active CN112765395B (en) | 2021-01-22 | 2021-01-22 | Audio playback method, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112765395B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113536027B (en) * | 2021-07-27 | 2024-10-22 | 咪咕音乐有限公司 | Music recommendation method, device, equipment and computer-readable storage medium |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1402859A (en) * | 1999-12-01 | 2003-03-12 | 西尔弗布鲁克研究有限公司 | Audio player with code sensor |
CN104571469A (en) * | 2013-10-12 | 2015-04-29 | 华为技术有限公司 | Method, device and terminal for outputting sound signals |
CN104936125A (en) * | 2015-06-18 | 2015-09-23 | 三星电子(中国)研发中心 | Method and device for realizing surround sound |
CN104978038A (en) * | 2015-03-12 | 2015-10-14 | 齐鲁工业大学 | Novel laser keyboard input type music playing system |
CN105721973A (en) * | 2016-01-26 | 2016-06-29 | 王泽玲 | Bone conduction headset and audio processing method thereof |
CN106687958A (en) * | 2016-12-08 | 2017-05-17 | 深圳市汇顶科技股份有限公司 | Audio playing device, system and method |
CN107005764A (en) * | 2014-11-21 | 2017-08-01 | 三星电子株式会社 | Earphone with activity control output |
CN108710486A (en) * | 2018-05-28 | 2018-10-26 | Oppo广东移动通信有限公司 | Audio playing method and device, earphone and computer readable storage medium |
CN110049403A (en) * | 2018-01-17 | 2019-07-23 | 北京小鸟听听科技有限公司 | A kind of adaptive audio control device and method based on scene Recognition |
CN110979178A (en) * | 2019-12-16 | 2020-04-10 | 中国汽车工程研究院股份有限公司 | Intelligent vehicle driver voice reminding device based on sound focusing |
CN111630879A (en) * | 2018-01-19 | 2020-09-04 | 诺基亚技术有限公司 | Associated spatial audio playback |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9031939B2 (en) * | 2007-10-03 | 2015-05-12 | Peter Neal Nissen | Media sequencing method to provide location-relevant entertainment |
-
2021
- 2021-01-22 CN CN202110090450.4A patent/CN112765395B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1402859A (en) * | 1999-12-01 | 2003-03-12 | 西尔弗布鲁克研究有限公司 | Audio player with code sensor |
CN104571469A (en) * | 2013-10-12 | 2015-04-29 | 华为技术有限公司 | Method, device and terminal for outputting sound signals |
CN107005764A (en) * | 2014-11-21 | 2017-08-01 | 三星电子株式会社 | Earphone with activity control output |
CN104978038A (en) * | 2015-03-12 | 2015-10-14 | 齐鲁工业大学 | Novel laser keyboard input type music playing system |
CN104936125A (en) * | 2015-06-18 | 2015-09-23 | 三星电子(中国)研发中心 | Method and device for realizing surround sound |
CN105721973A (en) * | 2016-01-26 | 2016-06-29 | 王泽玲 | Bone conduction headset and audio processing method thereof |
CN106687958A (en) * | 2016-12-08 | 2017-05-17 | 深圳市汇顶科技股份有限公司 | Audio playing device, system and method |
CN110049403A (en) * | 2018-01-17 | 2019-07-23 | 北京小鸟听听科技有限公司 | A kind of adaptive audio control device and method based on scene Recognition |
CN111630879A (en) * | 2018-01-19 | 2020-09-04 | 诺基亚技术有限公司 | Associated spatial audio playback |
CN108710486A (en) * | 2018-05-28 | 2018-10-26 | Oppo广东移动通信有限公司 | Audio playing method and device, earphone and computer readable storage medium |
CN110979178A (en) * | 2019-12-16 | 2020-04-10 | 中国汽车工程研究院股份有限公司 | Intelligent vehicle driver voice reminding device based on sound focusing |
Non-Patent Citations (1)
Title |
---|
公共环境下的混合型音乐推荐系统的关键技术研究;陈雅茜 等;《计算机应用研究》;20121130;第29卷(第11期);4250-4253 * |
Also Published As
Publication number | Publication date |
---|---|
CN112765395A (en) | 2021-05-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11729565B2 (en) | Sound normalization and frequency remapping using haptic feedback | |
CN108429972B (en) | Music playing method, device, terminal, earphone and readable storage medium | |
CN104394491B (en) | A kind of intelligent earphone, Cloud Server and volume adjusting method and system | |
CN103680545B (en) | Audio frequency broadcast system and its control method for playing back | |
US9319019B2 (en) | Method for augmenting a listening experience | |
KR20170100007A (en) | System and method for creating listening logs and music libraries | |
US8358786B2 (en) | Method and apparatus to measure hearing ability of user of mobile device | |
KR102084979B1 (en) | Audio file rerecording method, device and storage media | |
US20200356336A1 (en) | Bluetooth speaker, and intelligent control method for playing audio | |
CN1732713A (en) | Audio reproduction apparatus, feedback system and method | |
WO2018079850A1 (en) | Signal processing device, signal processing method, and program | |
CN106210266A (en) | A kind of acoustic signal processing method and audio signal processor | |
CN112765395B (en) | Audio playback method, electronic device and storage medium | |
CN205282093U (en) | Audio player | |
CN112466354B (en) | Music playing device based on five-element music | |
CN209769901U (en) | a musical pillow | |
TWM546066U (en) | Audio equipment | |
CN119096291A (en) | Soundscape enhancement system and method for forming the same | |
WO2021127842A1 (en) | Equalizer setting method, apparatus and device, and computer readable storage medium | |
O’Grady | “Everyday Fidelity”: Analyzing Sound Quality in Ubiquitous Listening Practices | |
CN107978328B (en) | Information processing method and device | |
CN207441228U (en) | A KTV song ordering system and KTV | |
JP2012022242A (en) | Reproducing device for musical sound, and program | |
JP2010176042A (en) | Singing sound recording karaoke system | |
US20070110261A1 (en) | Audio processing system with function of automatic gain control and method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |