WO2018014621A1 - 播放音乐的方法及装置 - Google Patents

播放音乐的方法及装置 Download PDF

Info

Publication number
WO2018014621A1
WO2018014621A1 PCT/CN2017/082976 CN2017082976W WO2018014621A1 WO 2018014621 A1 WO2018014621 A1 WO 2018014621A1 CN 2017082976 W CN2017082976 W CN 2017082976W WO 2018014621 A1 WO2018014621 A1 WO 2018014621A1
Authority
WO
WIPO (PCT)
Prior art keywords
manipulation
song
state
information
terminal
Prior art date
Application number
PCT/CN2017/082976
Other languages
English (en)
French (fr)
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 WO2018014621A1 publication Critical patent/WO2018014621A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Definitions

  • the present invention relates to the field of signal analysis and processing technologies, and in particular, to a method and apparatus for playing music by manipulating a terminal.
  • Existing aircraft can be operated not only by operating terminals such as mobile phones and tablets, but also by wearing VR (Virtual
  • the VR glasses detect the user's head movements (ie, detect the posture information of the VR glasses along with the user's head movements) to generate corresponding control commands, thereby achieving Flight control of the aircraft, such as roll control, yaw control, pitch control, etc. It also enhances the experience with VR glasses while manipulating the aircraft.
  • music can be played through the VR glasses while the aircraft is being operated; the user needs to pre-select the tracks to be played and set the play mode (single mode, loop mode, random mode, etc.). That is to say, the way that VR glasses play music is still pre-set, does not have self-learning function, and is not convenient for users to adjust the songs to be played during the flight control process.
  • the embodiment of the present invention provides a method and a device for playing music, which can adaptively play a corresponding song according to a manipulation state of the manipulation terminal.
  • An aspect of the present invention provides a method for playing music, including:
  • the step of obtaining, according to the posture information, the number of manipulation commands generated by the manipulation terminal within the set length includes:
  • the step of analyzing the posture information according to the preset posture counting logic, and obtaining the posture change information of the manipulation terminal within the set length includes:
  • the posture information includes at least one of roll information, yaw information, and pitch information.
  • the step of determining the current control state of the manipulation terminal according to the number of the manipulation instructions comprises:
  • the step of acquiring a song type corresponding to the manipulation state, and playing the song in the song type library comprises:
  • the step of acquiring a song type corresponding to the manipulation state, and playing the song in the song type library further comprises:
  • the method further includes:
  • a plurality of manipulation states are defined in advance, and a correspondence relationship between each manipulation state and a song type library is established;
  • a plurality of numerical intervals are set in advance, and a correspondence relationship between each numerical interval and a manipulation state is established.
  • the manipulation terminal is a VR glasses.
  • Another aspect of the present invention provides an apparatus for playing music, including:
  • an acquisition module configured to collect posture information of the manipulation terminal, and obtain, according to the posture information, a number of manipulation commands generated by the manipulation terminal within the set length;
  • a state determining module configured to determine, according to the number of the manipulation instructions, a current control state of the manipulation terminal
  • a play control module configured to acquire a song type corresponding to the manipulation state, and search a song library to obtain a song corresponding to the song type, and play the song.
  • the collecting module includes: an analyzing and counting unit, configured to analyze the collected posture information according to a preset posture counting logic, and obtain posture change information of the control terminal within a set length;
  • the attitude change information determines the number of manipulation commands generated by the manipulation terminal within the set length.
  • the posture information includes at least one of roll information, yaw information, and pitch information.
  • the device further includes:
  • a storage module configured to store the pre-categorized songs, and store the preset numerical interval and the control state; and further configured to store the correspondence between the numerical interval and the manipulation state, and the correspondence between the manipulation state and the song type.
  • the play control module specifically includes:
  • a first detecting unit configured to determine whether information about the end of the current song playing is detected
  • a second detecting unit configured to determine whether a playback control command for starting/switching the song is detected
  • a search playing unit configured to: when the determination result of the first detecting unit or the second detecting unit is ⁇ , acquire the newly determined manipulation state, acquire a song type corresponding to the manipulation state, and search for a corresponding song type The song in the library, playing the song.
  • the device further includes:
  • a setting module configured to predefine a plurality of manipulation states, and respectively establish a correspondence relationship between each manipulation state and a song type; and is further configured to preset a plurality of numerical intervals, and establish a correspondence relationship between each numerical interval and a manipulation state.
  • FIG. 1 is a schematic flowchart of a method for playing music according to an embodiment
  • FIG. 2 is a schematic flowchart of a method for playing music according to an embodiment
  • FIG. 3 is a schematic structural diagram of an apparatus for playing music according to an embodiment
  • FIG. 4 is a schematic structural diagram of an apparatus for playing music according to another embodiment.
  • FIG. 1 is a schematic flowchart of a method for playing music in an embodiment; in this embodiment, a VR glasses is taken as an example of a control terminal of an aircraft; specifically, the VR glasses can be used as an aircraft.
  • the control terminal of the pan/tilt, and in this embodiment, the aircraft control terminal is used as an execution subject.
  • the method for playing music in this embodiment includes the following steps:
  • the attitude control is taken as an example, and the user's manipulation information on the aircraft, such as roll control, yaw control, pitch control, etc., can be obtained by acquiring the attitude information of the control terminal.
  • the manner in which the user manipulates the aircraft based on the manipulation terminal includes, but is not limited to, voice control, button control, touch control, and attitude control. Therefore, the step may be replaced by acquiring the manipulation instruction information of the manipulation terminal, and according to the manipulation instruction information, the number of manipulation commands generated by the manipulation terminal within the set length is obtained.
  • S12 determining, according to the number of the manipulation instructions, a current control state of the manipulation terminal;
  • the player In the actual manipulation of the aircraft, in some occasions, the player (user) needs to smoothly control the aircraft, such as aerial photography; in some occasions, it is desirable to display some cool skills, such as multiplayer racing.
  • Ben In the embodiment of the invention, several kinds of manipulation states may be defined in advance, and the difference in the number of manipulation commands of the aircraft to the aircraft within a certain length (for example, within four minutes) is reflected by different manipulation states.
  • pre-defined control states such as unrestrained, moderate, smooth, and quiet.
  • the unobstructed control state indicates that the control terminal has the largest number of manipulation commands for the aircraft within the set length, and the number of control commands corresponding to moderate, smooth, and quiet decreases in turn.
  • S13 Acquire a song type corresponding to the manipulation state, and search a song library to obtain a song corresponding to the song type, and play the song.
  • the correspondence between each control state and the song type needs to be established in advance, for example, the types of songs corresponding to the rush, medium, smooth, and quiet are rock, blue, rustic, and fresh. It can be understood that the control state, and the correspondence between the manipulation state and the song type can be set based on actual conditions, including but not limited to the cases enumerated in this embodiment. Finding songs can be either sequential or random search, enabling sequential or random playback of songs.
  • the manner in which the song is classified in the present invention is not limited.
  • the songs in the song library may be classified according to the number of beats or the performance style.
  • the control state of the manipulation terminal does not change.
  • the corresponding plurality of songs are sequentially played in order.
  • the control state of the next control terminal is returned to the previously determined control state, and then the previous play record continues to play the corresponding plurality of songs. This prevents the same song from being played repeatedly.
  • the soothing type of song can be automatically played; when the user manipulates the aircraft more intensely, the rock-like song can be automatically played, so that the played song and
  • the user's current control state is adapted and does not require manual adjustment by the user.
  • FIG. 2 is a schematic flowchart of a method for playing music according to an embodiment; and a method for playing music according to the present invention will be further described below with reference to FIG. As shown in FIG. 2, the method for playing music in the embodiment of the present invention includes the following steps:
  • the attitude information of the control terminal may be collected by controlling a gravity sensor, an acceleration sensor, or the like preset by the terminal, including at least one of roll information, yaw information, and pitch information, to The attitude information of the end determines the user's manipulation information on the aircraft.
  • S22 The posture information collected within the set length is used as a data packet, and the posture information is analyzed, and the number of manipulation commands of the control terminal to the aircraft within the set length is obtained.
  • the posture information collected every 4 minutes is analyzed and processed as one data packet.
  • this can be adjusted according to the actual situation.
  • the default posture information of the predefined manipulation terminal may be acquired, and the default posture is used as the reference information to analyze the posture information within the length of the reference information, and the posture change of the manipulation terminal within the set length is obtained.
  • information for example: a default gesture of the control terminal can be predefined (for example, the default state of the user wearing the VR glasses), and the state other than the default gesture is used as the enable state (ie, the state in which the manipulation command is generated); All posture change information between the attitude start and return to the default posture (ie, all manipulation commands generated during the operation of the terminal from the starting point position to the end point position), thereby obtaining the control terminal setting.
  • a plurality of numerical intervals such as [0, 10], [11, 30], [31, 60], and 61 or more, may be set according to a user's manipulation of the big data information of the aircraft;
  • the correspondence between each numerical interval and the control state for example, the control states corresponding to the four numerical intervals of [0, 10], [11, 30], [31, 60], and 61 are quiet, smooth, moderate, and unrestrained. If the number of manipulation commands of the aircraft by the user through the control terminal is 15, the value interval of the aircraft is determined to be [11, 30], and the corresponding control state is determined to be stable.
  • the setting may be performed according to an actual scenario, including but not limited to the case enumerated in this embodiment.
  • step S25 detecting that the current song is played? If yes, go to step S26, otherwise, continue to detect.
  • step S25 may further include: Is the playback control command to start playing/switching the song received? If so, step S26 is performed, otherwise, the playback control command is continuously detected.
  • the current state of the user's manipulation of the aircraft that is, the manipulation state that the terminal has recently determined.
  • S27 Determine a song type corresponding to the manipulation state, and play the song.
  • the transaction of playing music of the VR glasses and the transaction determining the control state according to the setting are in a parallel relationship (that is, the above steps S21-S24 and steps S25-S27 are performed in parallel)
  • the state of the user's manipulation of the aircraft is dynamically changed, and the VR glasses can store the analyzed control state according to the setting time.
  • the latest control state of the day is determined by the acquisition to ensure that the music playing is adapted to the state of manipulation.
  • the present invention also provides an apparatus for playing music, which apparatus can be used to perform the above-described method of playing music.
  • apparatus can be used to perform the above-described method of playing music.
  • the structural diagram of the apparatus for playing music only the parts related to the embodiment of the present invention are shown, and those skilled in the art can understand that the illustrated structure does not constitute a limitation of the apparatus, and may include a comparison diagram. Show more or fewer parts, or combine some parts, or different parts.
  • FIG. 3 is a schematic structural diagram of an apparatus for playing music according to an embodiment of the present invention. As shown in FIG. 3, the apparatus for playing music in this embodiment includes: an acquisition module 310, a state determination module 320, and a playback control module. 3 30, each module is detailed as follows:
  • the acquiring module 310 is configured to collect posture information of the control terminal, and obtain the Set the number of control commands generated by the terminal within the length of the control.
  • the posture information of the control terminal can be collected by controlling any of the gyroscope, the accelerometer, the electronic compass, the gravity sensor, and the like of the terminal.
  • the state determining module 320 is configured to determine, according to the number of the manipulation instructions, a current steering state of the manipulation terminal;
  • the play control module 330 is configured to acquire a song type corresponding to the manipulation state, find a song library to obtain a song corresponding to the song type, and play the song.
  • the collection module 310 may include: an attitude collection unit 311, configured to collect posture information of the manipulation terminal; and an analysis statistics unit 312, configured to analyze the posture information to obtain that the manipulation terminal is set.
  • the number of manipulation commands generated in the predetermined length is specifically used to analyze the collected posture information according to the preset posture counting logic, and obtain the posture change information of the manipulation terminal within the set length; the posture change information is determined by the posture change information. Set the number of manipulation commands generated by the control terminal within the length.
  • the analysis and statistics unit 312 may be specifically configured to obtain a default posture information of a predefined manipulation terminal, and analyze the posture information by using the default posture as a starting point position and a termination point position, and obtain the setting information.
  • the posture change information of the terminal from the starting point position to the ending point position is controlled within the length; the posture change information determines the number of manipulation commands generated within the set length.
  • the posture information includes at least one of roll information, yaw information, and pitch information.
  • the play control module 330 may include: a first detecting unit 331, configured to determine whether the information of the current song end is detected; the second detecting unit 332 is configured to determine whether the initial play is detected/ Switching the play control command of the song; and, the search play unit 333, configured to: when the detection result of the first detection unit or the second detection unit is ⁇ , acquire the newly determined control state, and acquire the song corresponding to the manipulation state Type, find a song library to derive a song belonging to the song type, play the song.
  • FIG. 4 is a schematic structural diagram of an apparatus for playing music according to another embodiment.
  • the apparatus for playing music includes: an acquisition module 310, a state determination module 320, and a playback control module 330,
  • the above embodiment is different in that it further includes: a setting module 340 and a storage module 350.
  • the setting module 340 is configured to predefine a plurality of manipulation states, and respectively establish corresponding correspondences between each manipulation state and a song type. It is also used to preset a number of numerical intervals, and establish the correspondence between each numerical interval and the manipulation state.
  • the storage module 350 is configured to store the pre-categorized songs, and store the preset numerical interval and the manipulation state.
  • the storage module 350 is further configured to store the correspondence between the numerical interval and the manipulation state, and the correspondence between the manipulation state and the song type.
  • each functional module is merely an example, and the actual application may be considered according to requirements, for example, for configuration requirements of corresponding hardware or convenience of implementation of software.
  • the above function assignment is performed by different function modules, that is, the internal structure of the device for playing music is divided into different functional modules to complete all or part of the functions described above.
  • Each function module can be implemented in the form of hardware or in the form of a software function module.
  • ROM Read Only Memory
  • RAM Random Access Memory
  • the invention collects the posture information of the control terminal, and obtains the number of manipulation commands generated by the manipulation terminal within the set length according to the posture information; acquires the song type corresponding to the manipulation state, and then plays the song of the corresponding type.
  • the user's manipulation style can be detected, and the corresponding terminal can be adaptively controlled to play the corresponding song according to the current manipulation style. Therefore, it has industrial applicability.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Electrophonic Musical Instruments (AREA)

Abstract

本发明涉及播放音乐的方法及装置。所述方法包括:采集操控终端的姿态信息,根据所述姿态信息得出在设定时长内操控终端生成的操控指令数量;根据所述操控指令数量确定所述操控终端当前的操控状态;获取与所述操控状态对应的歌曲类型,查找歌曲库得出与所述歌曲类型对应的歌曲,播放所述歌曲。本发明能够根据用户对飞行器的操控状态自适应的播放相应的歌曲。

Description

播放音乐的方法及装置 技术领域
[0001] 本发明涉及信号分析与处理技术领域, 特别是涉及通过操控终端播放音乐的方 法及装置。
背景技术
[0002] 现有的飞行器 (例如无人机) 不仅可通过手机、 平板等操控终端进行操作, 还 可通过佩带 VR(Virtual
Reality) 眼镜进行操控, 用户只需做相应的头部动作, VR眼镜检测用户的头部 动作 (即检测随着用户头部动作吋 VR眼镜的姿态信息) 生成相应的控制指令, 由此实现对飞行器的飞行控制, 如横滚控制、 偏航控制、 俯仰控制等。 并且还 可在操控飞行器过程中通过 VR眼镜增强体验。 此外, 还可在操控飞行器的同吋 , 通过所述 VR眼镜进行音乐播放; 用户需预先选定需要播放的曲目, 并设定播 放模式 (单曲模式、 循环模式、 随机模式等) 。 即目前 VR眼镜播放音乐的方式 仍然属于预先设定式的, 并不具有自我学习功能, 也不便于用户在飞控过程中 实吋调整需播放的歌曲。
技术问题
[0003] 基于此, 本发明实施例提供播放音乐的方法及装置, 能够根据操控终端的操控 状态自适应的播放相应的歌曲。
问题的解决方案
技术解决方案
[0004] 本发明一方面提供播放音乐的方法, 包括:
[0005] 采集操控终端的姿态信息, 根据所述姿态信息得出在设定吋长内操控终端生成 的操控指令数量;
[0006] 根据所述操控指令数量确定所述操控终端当前的操控状态;
[0007] 获取与所述操控状态对应的歌曲类型, 査找歌曲库得出与所述歌曲类型对应的 歌曲, 播放所述歌曲。 [0008] 优选的, 根据所述姿态信息得出在设定吋长内操控终端生成的操控指令数量的 步骤包括:
[0009] 根据预设的姿态计数逻辑分析所述姿态信息, 得出操控终端在设定吋长内的姿 态变化信息; 由所述姿态变化信息确定在设定吋长内所述操控终端生成的操控 指令数量。
[0010] 优选的, 所述根据预设的姿态计数逻辑分析所述姿态信息, 得出操控终端在设 定吋长内的姿态变化信息的步骤包括:
[0011] 获取预定义的操控终端的默认姿态信息, 将默认姿态作为参考信息分析设定吋 长内的姿态信息, 得出在设定吋长内操控终端的姿态变化信息。
[0012] 优选的, 所述姿态信息包括横滚信息、 偏航信息、 俯仰信息中至少一种。
[0013] 优选的, 所述根据所述操控指令数量确定所述操控终端当前的操控状态的步骤 包括:
[0014] 确定所述操控指令数量所属的数值区间, 获取所述数值区间对应的操控状态, 作为所述操控终端当前的操控状态。
[0015] 优选的, 所述获取与所述操控状态对应的歌曲类型, 播放所述歌曲类型库中的 歌曲的步骤包括:
[0016] 判断是否检测到当前歌曲播放结束的信息, 若是, 则获取最新确定出的操控状 态, 获取与所述操控状态对应的歌曲类型, 査找所述歌曲类型库中的歌曲, 播 放所述歌曲。
[0017] 优选的, 所述获取与所述操控状态对应的歌曲类型, 播放所述歌曲类型库中的 歌曲的步骤还包括:
[0018] 判断是否接收到幵始播放 /切换歌曲的播放控制指令, 若是, 则获取最新确定 出的操控状态, 获取与所述操控状态对应的歌曲类型, 査找所述歌曲类型库中 的歌曲, 播放所述歌曲。
[0019] 优选的, 所述方法还包括:
[0020] 预先定义若干种操控状态, 建立每种操控状态与歌曲类型库的对应关系; [0021] 预先设定若干数值区间, 建立每个数值区间与操控状态的对应关系。
[0022] 优选的, 所述操控终端为 VR眼镜。 [0023] 本发明另一方面还提供一种播放音乐的装置, 包括:
[0024] 采集模块, 用于采集操控终端的姿态信息, 根据所述姿态信息得出在设定吋长 内操控终端生成的操控指令数量;
[0025] 状态确定模块, 用于根据所述操控指令数量确定所述操控终端当前的操控状态
[0026] 播放控制模块, 用于获取与所述操控状态对应的歌曲类型, 査找歌曲库得出与 所述歌曲类型对应的歌曲, 播放所述歌曲。
[0027] 优选的, 所述采集模块包括: 分析统计单元, 用于根据预设的姿态计数逻辑分 析采集到的姿态信息, 得出操控终端在设定吋长内的姿态变化信息; 由所述姿 态变化信息确定在设定吋长内所述操控终端生成的操控指令数量。
[0028] 优选的, 所述姿态信息包括横滚信息、 偏航信息、 俯仰信息中至少一种。
[0029] 优选的, 所述装置还包括:
[0030] 存储模块, 用于存储预先分类的歌曲, 以及存储预先设定的数值区间、 操控状 态; 还用于存储数值区间与操控状态的对应关系, 操控状态与歌曲类型的对应 关系。
[0031] 优选的, 所述播放控制模块具体包括:
[0032] 第一检测单元, 用于判断是否检测到当前歌曲播放结束的信息;
[0033] 第二检测单元, 用于判断是否检测到幵始播放 /切换歌曲的播放控制指令;
[0034] 査找播放单元, 用于当第一检测单元或第二检测单元的判断结果为是吋, 获取 最新确定出的操控状态, 获取与所述操控状态对应的歌曲类型, 査找对应的歌 曲类型库中的歌曲, 播放所述歌曲。
[0035] 优选的, 所述装置还包括:
[0036] 设置模块, 用于预先定义若干种操控状态, 并分别建立每种操控状态与歌曲类 型的对应关系; 还用于预先设定若干数值区间, 建立每个数值区间与操控状态 的对应关系。
发明的有益效果
有益效果
[0037] 上述技术方案, 通过采集操控终端的姿态信息, 根据所述姿态信息得出在设定 吋长内操控终端生成的操控指令数量; 获取与所述操控状态对应的歌曲类型, 进而播放对应类型的歌曲。 通过本发明上述实施例的方案, 能够实吋检测出用 户的操控风格, 并根据当前的操控风格自适应控制操控终端播放相应的歌曲。 对附图的简要说明
附图说明
[0038] 图 1为一实施例的播放音乐的方法的示意性流程图;
[0039] 图 2为一具体实施方式的播放音乐的方法的示意性流程图;
[0040] 图 3为一实施例的播放音乐的装置的示意性结构图;
[0041] 图 4为另一实施例的播放音乐的装置的示意性结构图。
本发明的实施方式
[0042] 为了使本发明的目的、 技术方案及优点更加清楚明白, 以下结合附图及实施例 , 对本发明进行进一步详细说明。 应当理解, 此处所描述的具体实施例仅仅用 以解释本发明, 并不用于限定本发明。
[0043] 图 1为一实施例的播放音乐的方法的示意性流程图; 在该实施例中, 以 VR眼镜 为例, 将其作为飞行器的操控终端; 具体地, 所述 VR眼镜可以作为飞行器云台 的操控终端, 并且在该实施例中以飞行器操控终端作为执行主体进行说明。
[0044] 如图 1所示, 本实施例中的播放音乐的方法包括步骤:
[0045] Sl l, 采集操控终端的姿态信息, 根据所述姿态信息得出在设定吋长内操控终 端生成的操控指令数量;
[0046] 本发明实施例以姿态控制为例, 可通过获取操控终端的姿态信息得到用户对飞 行器的操控信息, 例如横滚控制、 偏航控制、 俯仰控制等。 需要说明的是, 用 户基于操控终端对飞行器进行操控的方式包括但不限于语音控制、 按键控制、 触摸控制和姿态控制。 因此该步骤可替换为采集操控终端的操控指令信息, 根 据所述操控指令信息得出在设定吋长内操控终端生成的操控指令数量。
[0047] S12, 根据所述操控指令数量确定所述操控终端当前的操控状态;
[0048] 在实际操控飞行器的吋候, 有的场合下玩家 (用户) 需要平稳的操控飞行器, 例如航拍的吋候; 有的场合则希望展示一些炫酷的技能, 例如多人竞技吋。 本 发明实施例中, 可预先定义了若干种操控状态, 通过不同的操控状态来体现用 户在一定吋长内 (例如四分钟内) 对飞行器的操控指令数量的区别。 例如预先 定义奔放、 中度、 平稳、 安静等操控状态, 奔放操控状态表示操控终端在设定 吋长内对飞行器的操控指令数量最多, 中度、 平稳、 安静对应的操控指令数量 依次减少。
[0049] S13, 获取与所述操控状态对应的歌曲类型, 査找歌曲库得出与所述歌曲类型 对应的歌曲, 播放所述歌曲。
[0050] 本发明实施例中, 还需预先建立每种操控状态与歌曲类型的对应关系, 例如奔 放、 中度、 平稳、 安静对应的歌曲类型分别为摇滚、 蓝调、 乡村、 清新。 可以 理解的是, 对操控状态, 以及操控状态与歌曲类型的对应关系均可基于实际情 况进行设置, 包括但不限于本实施例所列举的情况。 査找歌曲吋可以是按顺序 査找或随机査找, 从而实现歌曲的顺序播放或随机播放功能。
[0051] 需要说明的是, 本发明对歌曲分类的方式不作限定, 例如可根据节拍数或者演 奏风格等对歌曲库中的歌曲进行分类。
[0052] 作为一优选实施方式, 本实施例的音乐播放方法中, 若步骤 S13査找歌曲库得 出与所述歌曲类型对应的歌曲有多个, 那么在操控终端的操控状态未发生改变 的情况下, 按顺序依次播放对应的多个歌曲。 或者, 在下一次操控终端的操控 状态重新回到之前确定过的操控状态吋, 接着上一次的播放记录继续播放对应 的多个歌曲。 由此可防止重复播放相同的歌曲。
[0053] 通过上述实施例的播放音乐的方法, 当用户操控飞行器较为平和吋, 可自动播 放舒缓类型的歌曲; 当用户操控飞行器较为激烈吋, 可自动播放摇滚类的歌曲 , 使得播放的歌曲与用户当前的操控状态相适应, 且无需用户手动调整。
[0054] 图 2为一具体实施方式的播放音乐的方法的示意性流程图; 下面参考图 2, 对本 发明播放音乐的方法进行进一步的说明。 如图 2所示, 本发明实施例的播放音乐 的方法包括步骤:
[0055] S21 , 采集操控终端的姿态信息;
[0056] 例如, 可通过操控终端预设的重力传感器、 加速度传感器等采集操控终端的姿 态信息, 包括横滚信息、 偏航信息、 俯仰信息中至少一种, 以根据所述操控终 端的姿态信息确定用户对飞行器的操控信息。
[0057] S22, 将设定吋长内采集到的姿态信息作为一个数据包, 分析其中的姿态信息 , 得出在所述设定吋长内操控终端对飞行器的操控指令数量。
[0058] 优选的, 本实施例中将每 4分钟内采集到的姿态信息作为一个数据包进行分析 处理。 当然, 根据实际情况还可对此吋间进行调整。
[0059] 作为一优选实施方式, 可获取预定义的操控终端的默认姿态信息, 将默认姿态 作为参考信息分析设定吋长内的姿态信息, 得出在设定吋长内操控终端的姿态 变化信息。 例如: 可预定义操控终端的一个默认姿态 (例如用户佩带 VR眼镜吋 的默认状态) , 将此默认姿态以外的状态均作为使能状态 (即产生操控指令的 状态) ; 基于分析操控终端从默认姿态幵始、 到恢复到默认姿态之间的所有姿 态变化信息 (即操控终端从起始点位置到所述终止点位置过程中产生的所有操 控指令) , 由此可得出操控终端在设定吋长内的姿态变化信息, 进而得出在所 述设定吋长内用户通过操控终端对飞行器的操控指令数量。
[0060] S23 , 确定所述操控指令数量所属的数值区间;
[0061] S24, 获取所述数值区间对应的操控状态, 作为用户当前对飞行器的操控状态
[0062] 本发明实施例中, 可根据用户操控飞行器的大数据信息设置若干数值区间, 例 如 [0,10]、 [11,30] 、 [31,60] 、 61以上四个区间; 并建立各数值区间与操控状态的 对应关系, 例如 [0,10]、 [11,30] 、 [31,60] 、 61以上四个数值区间对应的操控状态 分别为安静、 平稳、 中度、 奔放。 若得到在所述设定吋长内用户通过操控终端 对飞行器的操控指令数量为 15, 则可确定出其所属的数值区间为 [11,30], 进而确 定出对应的操控状态为平稳。
[0063] 可以理解的是, 对于数值区间, 以及数值区间与操控状态的对应关系, 可根据 实际情景进行设置, 包括但不限于本实施例所列举的情况。
[0064] S25 , 检测到当前歌曲播放结束?若是, 执行步骤 S26, 否则, 继续检测。
[0065] 作为另一优选实施方式, 上述步骤 S25还可包括: 是否接收到幵始播放 /切换歌 曲的播放控制指令?若是, 执行步骤 S26, 否则, 继续检测所述播放控制指令。
[0066] 可以理解的, 即使同一用户操控飞行器的状态也可能会随着吋间的变化而变化 , 有可能在一首歌曲的播放过程中操控状态发生变化, 若此吋立即进行歌曲切 换, 可能并不是用户所希望的, 特别是用户操控状态变化较为频繁的情况下, 若对应的频繁进行歌曲切换, 将导致用户无法完整的收听一首歌曲。 因此, 优 选的, 本实施例中只有在一首歌曲播放结束, 或者收到相应的播放控制指令吋 , 才进行歌曲类型的切换。
[0067] S26 , 获取最近一次确定出的操控状态;
[0068] 本实施例中, 用户当前对飞行器的操控状态即操控终端最近一次确定出的操控 状态。
[0069] S27 , 确定出与所述操控状态对应的歌曲类型, 并播放所述歌曲。
[0070] 可以理解的是, VR眼镜的播放音乐的事务、 按照设定吋间确定操控状态的事 务两者之间属于并行关系 (即上述步骤 S21-S24与步骤 S25-S27两部分并行执行) ; 并且用户操控飞行器的状态是动态变化的, VR眼镜可将分析出的操控状态按 照设定吋间进行存储。 当一首歌曲播放结束、 或者收到相应的播放控制指令吋 , 需重新检测用户当前对飞行器的操控状态, 以避免音乐播放与操控状态不相 适应。 本实施例中通过获取确定吋间最近的操控状态, 以保证音乐播放与操控 状态相适应。
[0071] 需要说明的是, 对于前述的各方法实施例, 为了简便描述, 将其都表述为一系 列的动作组合, 但是本领域技术人员应该知悉, 本发明并不受所描述的动作顺 序的限制, 因为依据本发明, 某些步骤可以采用其它顺序或者同吋进行。
[0072] 基于与上述实施例中的播放音乐的方法相同的思想, 本发明还提供播放音乐的 装置, 该装置可用于执行上述播放音乐的方法。 为了便于说明, 播放音乐的装 置实施例的结构示意图中, 仅仅示出了与本发明实施例相关的部分, 本领域技 术人员可以理解, 图示结构并不构成对装置的限定, 可以包括比图示更多或更 少的部件, 或者组合某些部件, 或者不同的部件布置。
[0073] 图 3为本发明一实施例的播放音乐的装置的示意性结构图; 如图 3所示, 本实施 例的播放音乐的装置包括: 采集模块 310、 状态确定模块 320以及播放控制模块 3 30, 各模块详述如下:
[0074] 上述采集模块 310, 用于采集操控终端的姿态信息, 根据所述姿态信息得出在 设定吋长内操控终端生成的操控指令数量。 具体地, 可通过操控终端的陀螺仪 、 加速度计、 电子罗盘、 重力传感器等中任意传感器采集操控终端的姿态信息
[0075] 状态确定模块 320, 用于根据所述操控指令数量确定所述操控终端当前的操控 状态;
[0076] 播放控制模块 330, 用于获取与所述操控状态对应的歌曲类型, 査找歌曲库得 出与所述歌曲类型对应的歌曲, 播放所述歌曲。
[0077] 优选的, 所述采集模块 310可包括: 姿态采集单元 311, 用于采集操控终端的姿 态信息; 以及, 分析统计单元 312, 用于分析所述姿态信息得出所述操控终端在 设定吋长内生成的操控指令数量, 具体用于根据预设的姿态计数逻辑分析采集 到的姿态信息, 得出操控终端在设定吋长内的姿态变化信息; 由所述姿态变化 信息确定在设定吋长内所述操控终端生成的操控指令数量。
[0078] 进一步的, 所述分析统计单元 312可具体用于, 获取预定义的操控终端的默认 姿态信息, 将默认姿态作为起始点位置和终止点位置分析所述姿态信息, 得出 在设定吋长内操控终端由所述起始点位置到所述终止点位置的姿态变化信息; 由所述姿态变化信息确定在设定吋长内生成的操控指令数量。
[0079] 优选的, 本发明实施例中, 所述姿态信息包括横滚信息、 偏航信息、 俯仰信息 中至少一种。
[0080] 优选的, 所述播放控制模块 330可包括: 第一检测单元 331, 用于判断是否检测 到当前歌曲播放结束的信息; 第二检测单元 332, 用于判断是否检测到幵始播放 / 切换歌曲的播放控制指令; 以及, 査找播放单元 333, 用于当第一检测单元或第 二检测单元的检测结果为是吋, 获取最新确定出的操控状态, 获取与所述操控 状态对应的歌曲类型, 査找歌曲库得出属于所述歌曲类型的歌曲, 播放所述歌 曲。
[0081] 图 4为另一实施例的播放音乐的装置的示意性结构图; 如图 4所示, 所述播放音 乐的装置包括: 采集模块 310、 状态确定模块 320以及播放控制模块 330, 与上述 实施例不同之处在于, 还包括: 设置模块 340和存储模块 350。 所述设置模块 340 用于预先定义若干种操控状态, 并分别建立每种操控状态与歌曲类型的对应关 系; 还用于预先设定若干数值区间, 建立每个数值区间与操控状态的对应关系
。 具体可参见上述方法实施例所述。 所述存储模块 350, 用于存储预先分类的歌 曲, 以及存储预先设定的数值区间、 操控状态; 还用于存储数值区间与操控状 态的对应关系, 操控状态与歌曲类型的对应关系。
[0082] 需要说明的是, 上述示例的播放音乐的装置的实施方式中, 各模块 /单元之间 的信息交互、 执行过程等内容, 由于与本发明前述方法实施例基于同一构思, 其带来的技术效果与本发明前述方法实施例相同, 具体内容可参见本发明方法 实施例中的叙述, 此处不再赘述。
[0083] 此外, 上述示例的播放音乐的装置的实施方式中, 各功能模块的逻辑划分仅是 举例说明, 实际应用中可以根据需要, 例如出于相应硬件的配置要求或者软件 的实现的便利考虑, 将上述功能分配由不同的功能模块完成, 即将所述播放音 乐的装置的内部结构划分成不同的功能模块, 以完成以上描述的全部或者部分 功能。 其中各功能模既可以采用硬件的形式实现, 也可以采用软件功能模块的 形式实现。
[0084] 本领域普通技术人员可以理解, 实现上述实施例方法中的全部或部分流程, 是 可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存储于一计算机 可读取存储介质中, 作为独立的产品销售或使用。 所述程序在执行吋, 可执行 如上述各方法的实施例的全部或部分步骤。 其中, 所述的存储介质可为磁碟、 光盘、 只读存储记忆体 (Read-Only
Memory , ROM) 或随机存储记忆体 (Random Access Memory , RAM) 等。
[0085] 在上述实施例中, 对各个实施例的描述都各有侧重, 某个实施例中没有详述的 部分, 可以参见其它实施例的相关描述。 可以理解, 其中所使用的术语"第一"、 "第二"等在本文中用于区分对象, 但这些对象不受这些术语限制。
[0086] 以上所述实施例仅表达了本发明的几种实施方式, 不能理解为对本发明专利范 围的限制。 应当指出的是, 对于本领域的普通技术人员来说, 在不脱离本发明 构思的前提下, 还可以做出若干变形和改进, 这些都属于本发明的保护范围。 因此, 本发明专利的保护范围应以所附权利要求为准。
工业实用性 本发明通过采集操控终端的姿态信息, 根据所述姿态信息得出在设定吋长内操 控终端生成的操控指令数量; 获取与所述操控状态对应的歌曲类型, 进而播放 对应类型的歌曲。 通过本发明上述实施例的方案, 能够实吋检测出用户的操控 风格, 并根据当前的操控风格自适应控制操控终端播放相应的歌曲。 因此, 具 有工业实用性。

Claims

权利要求书
[权利要求 1] 一种播放音乐的方法, 包括:
采集操控终端的姿态信息, 根据所述姿态信息得出在设定吋长内操控 终端生成的操控指令数量;
根据所述操控指令数量确定所述操控终端当前的操控状态; 预设与所述操控状态对应的歌曲类型库, 储存与所述歌曲类型对应的 歌曲;
获取与所述操控状态对应的歌曲类型, 播放所述歌曲类型库中的歌曲
[权利要求 2] 根据权利要求 1所述的播放音乐的方法, 其中, 根据所述姿态信息得 出在设定吋长内操控终端生成的操控指令数量的步骤包括: 根据预设的姿态计数逻辑分析所述姿态信息, 得出操控终端在设定吋 长内的姿态变化信息; 由所述姿态变化信息确定在设定吋长内所述操 控终端生成的操控指令数量。
[权利要求 3] 根据权利要求 2所述的播放音乐的方法, 其中, 所述根据预设的姿态 计数逻辑分析所述姿态信息, 得出操控终端在设定吋长内的姿态变化 信息的步骤包括:
获取预定义的操控终端的默认姿态信息, 将默认姿态作为参考信息分 析设定吋长内的姿态信息, 得出在设定吋长内操控终端的姿态变化信 息。
[权利要求 4] 根据权利要求 1所述的播放音乐的方法, 其中, 所述姿态信息包括横 滚信息、 偏航信息、 俯仰信息中至少一种。
[权利要求 5] 根据权利要求 1所述的播放音乐的方法, 其中, 所述根据所述操控指 令数量确定所述操控终端当前的操控状态的步骤包括:
确定所述操控指令数量所属的数值区间, 获取所述数值区间对应的操 控状态, 作为所述操控终端当前的操控状态。
[权利要求 6] 根据权利要求 1至 5任一所述的播放音乐的方法, 其中, 所述获取与所 述操控状态对应的歌曲类型, 播放所述歌曲类型库中的歌曲的步骤包 括:
判断是否检测到当前歌曲播放结束的信息, 若是, 则获取最新确定出 的操控状态, 获取与所述操控状态对应的歌曲类型, 査找所述歌曲类 型库中的歌曲, 播放所述歌曲。
根据权利要求 6所述的播放音乐的方法, 其中, 所述获取与所述操控 状态对应的歌曲类型, 播放所述歌曲类型库中的歌曲的步骤还包括: 判断是否接收到幵始播放 /切换歌曲的播放控制指令, 若是, 则获取 最新确定出的操控状态, 获取与所述操控状态对应的歌曲类型, 査找 所述歌曲类型库中的歌曲, 播放所述歌曲。
根据权利要求 1至 5任一所述的播放音乐的方法, 其中, 所述方法还包 括:
预先定义若干种操控状态, 建立每种操控状态与歌曲类型库的对应关 系;
预先设定若干数值区间, 建立每个数值区间与操控状态的对应关系。 根据权利要求 1至 5任一所述的播放音乐的方法, 其中, 所述操控终端 为 VR眼镜。
一种播放音乐的装置, 包括:
采集模块, 用于采集操控终端的姿态信息, 根据所述姿态信息得出在 设定吋长内操控终端生成的操控指令数量;
状态确定模块, 用于根据所述操控指令数量确定所述操控终端当前的 操控状态;
播放控制模块, 用于获取与所述操控状态对应的歌曲类型, 査找对应 的歌曲类型库中的歌曲, 播放所述歌曲。
根据权利要求 10所述的播放音乐的装置, 其中, 所述采集模块包括: 分析统计单元, 用于根据预设的姿态计数逻辑分析采集到的姿态信息 , 得出操控终端在设定吋长内的姿态变化信息; 由所述姿态变化信息 确定在设定吋长内所述操控终端生成的操控指令数量。
根据权利要求 10所述的播放音乐的装置, 其中, 所述姿态信息包括横 滚信息、 偏航信息、 俯仰信息中至少一种。
[权利要求 13] 根据权利要求 10所述的播放音乐的装置, 其中, 所述装置还包括: 存储模块, 用于存储预先分类的歌曲, 以及存储预先设定的数值区间 、 操控状态; 还用于存储数值区间与操控状态的对应关系, 操控状态 与歌曲类型的对应关系。
[权利要求 14] 根据权利要求 10至 13任一所述的播放音乐的装置, 其中, 所述播放控 制模块具体包括:
第一检测单元, 用于判断是否检测到当前歌曲播放结束的信息; 第二检测单元, 用于判断是否检测到幵始播放 /切换歌曲的播放控制 指令;
査找播放单元, 用于当第一检测单元或第二检测单元的判断结果为是 吋, 获取最新确定出的操控状态, 获取与所述操控状态对应的歌曲类 型, 査找对应的歌曲类型库中的歌曲, 播放所述歌曲。
[权利要求 15] 根据权利要求 10至 13任一所述的播放音乐的装置, 其特征在于, 所述 装置还包括:
设置模块, 用于预先定义若干种操控状态, 并分别建立每种操控状态 与歌曲类型的对应关系; 还用于预先设定若干数值区间, 建立每个数 值区间与操控状态的对应关系。
PCT/CN2017/082976 2016-07-20 2017-05-04 播放音乐的方法及装置 WO2018014621A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610578811.9A CN107644031B (zh) 2016-07-20 2016-07-20 播放音乐的方法及装置
CN201610578811.9 2016-07-20

Publications (1)

Publication Number Publication Date
WO2018014621A1 true WO2018014621A1 (zh) 2018-01-25

Family

ID=60991870

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/082976 WO2018014621A1 (zh) 2016-07-20 2017-05-04 播放音乐的方法及装置

Country Status (2)

Country Link
CN (1) CN107644031B (zh)
WO (1) WO2018014621A1 (zh)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103426282A (zh) * 2013-07-31 2013-12-04 深圳市大疆创新科技有限公司 遥控方法及终端
CN104869498A (zh) * 2015-03-25 2015-08-26 深圳市九洲电器有限公司 声音播放控制方法及系统
CN105391984A (zh) * 2015-12-05 2016-03-09 谭圆圆 一种无人飞行器驾驶体验系统及其方法

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105304101A (zh) * 2015-10-29 2016-02-03 长沙相对音乐文化创作服务有限公司 通过侦测人体动作频率来实现与其匹配音乐播放的方法
CN105657505A (zh) * 2016-01-05 2016-06-08 天脉聚源(北京)传媒科技有限公司 一种视频遥控播放的方法及装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103426282A (zh) * 2013-07-31 2013-12-04 深圳市大疆创新科技有限公司 遥控方法及终端
CN104869498A (zh) * 2015-03-25 2015-08-26 深圳市九洲电器有限公司 声音播放控制方法及系统
CN105391984A (zh) * 2015-12-05 2016-03-09 谭圆圆 一种无人飞行器驾驶体验系统及其方法

Also Published As

Publication number Publication date
CN107644031B (zh) 2020-04-10
CN107644031A (zh) 2018-01-30

Similar Documents

Publication Publication Date Title
JP6986071B2 (ja) 多方向再生デバイスマイクロフォン
US10540074B2 (en) Method and terminal for playing media
WO2018108050A1 (zh) 智能终端及其应用程序权限控制方法、装置和服务器
US10384125B2 (en) Information processing program and information processing method
US9984153B2 (en) Electronic device and music play system and method
JP6510536B2 (ja) インスタント通信において表現情報を処理する方法及び装置
JP6012877B2 (ja) マルチメディアデバイス用音声制御システム及び方法、及びコンピュータ記憶媒体
US10468004B2 (en) Information processing method, terminal device and computer storage medium
US9848106B2 (en) Intelligent gameplay photo capture
EP3040882A1 (en) Discovery playlist creation
WO2016156553A1 (en) Apparatus for recognising and indexing context signals on a mobile device in order to generate contextual playlists and control playback
KR101194539B1 (ko) 미디어 파일 빠른 검색 방법 및 장치
CN1937462A (zh) 内容偏好得分确定方法、内容重放装置及内容重放方法
JP2020109654A (ja) モバイル端末における音声認識機能のウェイクアップ方法及び装置
WO2018090603A1 (zh) 移动终端音乐播放的控制方法、系统及移动终端
TW201725503A (zh) 伺服器及其音樂服務系統及方法
CN108391201A (zh) 一种tws耳机的操作方法、装置、tws耳机和存储介质
CN104318950A (zh) 信息处理方法及电子设备
US10732925B2 (en) Multi-device in-vehicle-infotainment system
JP2014171725A (ja) ゲームプログラム及びゲーム装置
WO2018014621A1 (zh) 播放音乐的方法及装置
WO2018014622A1 (zh) 播放音乐的方法、装置及系统
US20140111432A1 (en) Interactive music playback system
EP3057035B1 (en) Information processing program, information processing device, information processing system, and information processing method
CN107589988A (zh) 应用功能的控制方法、装置及计算机存储介质

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: 17830259

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: 17830259

Country of ref document: EP

Kind code of ref document: A1