Music playing method, device, electronic device and storage medium

By synchronously outputting audio signals and vibration signals in the terminal, the problem of single music playback mode is solved, the synchronization of vibration rhythm and music rhythm is achieved, and the user experience and perception of reminder information are improved.

CN112162721BActive Publication Date: 2025-09-23MEIZU TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202010944573.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-09-10
Publication Date
2025-09-23
Estimated Expiration
2040-09-10

AI Technical Summary

Technical Problem

The music playing mode of existing smart terminals lacks fun and has a poor user experience.

Method used

Audio and vibration signals are preset in the terminal, and are synchronously output through different channels to keep their frequencies and sampling rates consistent. The playback volume and vibration intensity are dynamically adjusted based on parameters such as ambient brightness and terminal posture.

Benefits of technology

The vibration rhythm is synchronized with the music rhythm, which improves the fun of music playback and user experience, and enhances the perceptibility of reminder information.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112162721B_ABST
    Figure CN112162721B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a music playing method, device, electronic device and storage medium, the method comprising: obtaining an audio signal and a vibration signal corresponding to the audio signal; the audio signal and the vibration signal corresponding to the audio signal are pre-set in the terminal; the audio signal is outputted via a first channel, and the vibration signal is outputted synchronously via a second channel, wherein the first channel is different from the second channel. The technical solution provided by the embodiment of the present disclosure satisfies the condition that both the audio signal and the vibration signal having a corresponding relationship can be called at any time, because the audio signal and the vibration signal corresponding to the audio signal are pre-set in the terminal. When playing music, the audio signal is outputted synchronously via the first channel and the vibration signal is outputted via the second channel, which ensures that the vibration rhythm is synchronized with the music rhythm, realizes the "music follows me" function, and improves the fun of music playing and the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of music playing, and in particular to a music playing method, device, electronic device, and storage medium. Background Art

[0002] At present, with the rapid popularization of smart terminals, smart terminals such as mobile phones and tablet computers have become one of the essential communication tools for people.

[0003] In practice, users often have the need to play music, for example, to satisfy personal spiritual needs. Or, they use music as a ringtone to remind users of unread messages or voice access requests, or as an alarm reminder.

[0004] However, the music playing methods commonly used in current smart terminals are single in form, lack of fun, and poor user experience. Summary of the Invention

[0005] In order to solve the above technical problems or at least partially solve the above technical problems, the present disclosure provides a music playing method, device, electronic device and storage medium.

[0006] In a first aspect, the present disclosure provides a music playing method applicable to a terminal, comprising:

[0007] Acquiring an audio signal and a vibration signal corresponding to the audio signal; the audio signal and the vibration signal corresponding to the audio signal are pre-set in the terminal;

[0008] The audio signal is outputted via a first channel, and the vibration signal is outputted via a second channel simultaneously, wherein the first channel is different from the second channel.

[0009] Furthermore, the first channel includes a power amplifier and a speaker connected to the power amplifier;

[0010] The second channel includes a power amplifier and a motor connected to the power amplifier.

[0011] Furthermore, the characteristic parameter data of the audio signal includes frequency and sampling rate;

[0012] The characteristic parameter data of the vibration signal include frequency and sampling rate;

[0013] The frequency variation pattern of the audio signal having a corresponding relationship is consistent with the frequency variation pattern of the vibration signal;

[0014] The sampling rate of the audio signal and the sampling rate of the vibration signal having a corresponding relationship are consistent.

[0015] Furthermore, the step of outputting the audio signal through the first channel and synchronously outputting the vibration signal through the second channel includes:

[0016] Get the current ambient brightness;

[0017] Determining a playback volume of the audio signal and a vibration intensity of the vibration signal based on the current ambient brightness;

[0018] The audio signal is outputted at the playback volume of the audio signal by using the first channel, and the vibration signal is outputted at the vibration intensity of the vibration signal by using the second channel simultaneously.

[0019] Furthermore, the step of outputting the audio signal through the first channel and synchronously outputting the vibration signal through the second channel includes:

[0020] Obtaining current posture parameter data of the terminal;

[0021] Determining a playback volume of the audio signal and a vibration intensity of the vibration signal based on the current posture parameter data;

[0022] The audio signal is outputted at the playback volume of the audio signal by using the first channel, and the vibration signal is outputted at the vibration intensity of the vibration signal by using the second channel simultaneously.

[0023] Furthermore, it also includes:

[0024] Get the duration of music playback;

[0025] If the current music playing duration is longer than a first set threshold, the playing volume of the audio signal and / or the vibration intensity of the vibration signal are increased.

[0026] Furthermore, obtaining the number of times the audio signal is played within a preset time length;

[0027] If the number of times the audio signal is played within the preset time length is greater than a second set threshold, the playing volume of the audio signal and / or the vibration intensity of the vibration signal are increased.

[0028] In a second aspect, the present disclosure further provides a music playing device, comprising:

[0029] a signal acquisition module, configured to acquire an audio signal and a vibration signal corresponding to the audio signal; the audio signal and the vibration signal corresponding to the audio signal are pre-stored in the terminal;

[0030] The signal output module is configured to output the audio signal via a first channel and simultaneously output the vibration signal via a second channel, wherein the first channel is different from the second channel.

[0031] In a third aspect, the present disclosure further provides an electronic device, comprising: a processor and a memory;

[0032] The processor is used to execute the steps of any of the above methods by calling the program or instructions stored in the memory.

[0033] In a fourth aspect, the present disclosure further provides a computer-readable storage medium, which stores a program or instruction, and the program or instruction enables a computer to execute the steps of any of the above methods.

[0034] The technical solution provided by the embodiments of the present disclosure has the following advantages over the prior art:

[0035] The technical solution provided by the embodiment of the present disclosure can meet the condition that the audio signal and the vibration signal with a corresponding relationship can be called at any time because the audio signal and the vibration signal corresponding to the audio signal are pre-set in the terminal. When playing music, the audio signal is outputted synchronously using the first channel and the vibration signal is outputted using the second channel. This can ensure that the vibration rhythm is synchronized with the music rhythm, realize the "music follows me" function, and improve the fun of music playback and the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0037] In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0038] Figure 1 A flowchart of a music playing method provided by an embodiment of the present disclosure;

[0039] Figure 2 A pair of waveform diagrams of an audio signal and a waveform diagram of a vibration signal having a corresponding relationship provided in an embodiment of the present disclosure;

[0040] Figure 3 A flowchart of another music playing method provided by an embodiment of the present disclosure;

[0041] Figure 4 Flowchart of another music playing method provided by the embodiment of the present disclosure

[0042] Figure 5 A flowchart of a music playing device provided by an embodiment of the present disclosure;

[0043] Figure 6 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0044] In order to more clearly understand the above-mentioned objectives, features and advantages of the present disclosure, the scheme of the present disclosure will be further described below. It should be noted that the embodiments of the present disclosure and the features therein can be combined with each other in the absence of conflict.

[0045] In the following description, many specific details are set forth to facilitate a full understanding of the present disclosure, but the present disclosure may also be implemented in other ways different from those described herein; it is obvious that the embodiments in the specification are only part of the embodiments of the present disclosure, rather than all of the embodiments.

[0046] Figure 1 This is a flowchart of a music playing method provided by an embodiment of the present disclosure. This music playing method is applicable to a terminal. Figure 1 , the music playing method includes:

[0047] S110 , obtaining an audio signal and a vibration signal corresponding to the audio signal; the audio signal and the vibration signal corresponding to the audio signal are pre-set in the terminal.

[0048] Here, “the audio signal and the vibration signal corresponding to the audio signal” should be understood as that the corresponding audio signal and vibration signal have the same rhythm and the same duration of play. Figure 2 A pair of waveform diagrams of an audio signal and a waveform diagram of a vibration signal having a corresponding relationship is provided in an embodiment of the present disclosure.

[0049] “Pre-stored in the terminal” means that before executing S120 , the audio signal and the vibration signal having a corresponding relationship have been stored in the terminal.

[0050] It should be noted that in this step, although the audio signal and the vibration signal corresponding to the audio signal are pre-set in the terminal. However, before being pre-set in the terminal, it is still necessary to produce a vibration signal corresponding to the audio signal based on the audio signal. Moreover, the two steps of "producing a vibration signal corresponding to the audio signal based on the audio signal" and "pre-setting the audio signal and the vibration signal corresponding to the audio signal in the terminal" can be performed before the terminal leaves the factory. It can also be performed after the terminal leaves the factory, and the present disclosure does not impose any restrictions on this. The execution subjects of these two steps may be the same or different. For example, a professional engineer can produce a vibration signal corresponding to the audio signal based on the audio signal, and distribute the produced vibration signal and the corresponding audio signal on the Internet. The user pre-sets the audio signal and the vibration signal corresponding to the audio signal in the terminal by downloading.

[0051] In practice, when generating a vibration signal corresponding to an audio signal, the location of the drum beats in the audio signal can be identified; based on the drum beat locations in the audio signal, a vibration signal corresponding to the audio signal can be generated. This arrangement is possible because music always alternates between strong and weak beats. This alternation cannot be random or haphazard; instead, it follows a certain pattern to form the smallest beat in a measure, which is then repeated over and over again. A drum beat refers to the first or third beat (2 / 4 or 4 / 4 time) in a measure of music, which is the strong beat. The first beat of the first measure of a three-step dance (3 / 4) is the strong beat (drum beat) or strong beat. Once the drum beat location in the audio signal is identified, the overall rhythmic pattern of the music is understood. Therefore, based on the drum beat locations in the music, a vibration signal with the same rhythm as the audio signal can be generated. However, in practice, identifying the drum beat locations in an audio signal requires engineers to have a deep understanding of music theory, which is quite difficult.

[0052] Optionally, in the present disclosure, it is considered that the characteristic parameter data of the audio signal includes frequency and sampling rate; the characteristic parameter data of the vibration signal also includes frequency and sampling rate; it is determined that the frequency variation pattern of the corresponding audio signal is consistent with the frequency variation pattern of the vibration signal; and the sampling rate of the corresponding audio signal is consistent with the sampling rate of the vibration signal. In this way, when generating a vibration signal corresponding to the audio signal, the audio signal frequency and sampling rate can be identified; based on the audio signal frequency and sampling rate, the vibration signal corresponding to the audio signal is generated.

[0053] Frequency, or audio, refers to the frequency of sound. Sound is produced by vibrations. For example, a sound with 20,000 vibrations per second is called 20,000Hz. Frequency determines the pitch of a sound. Sampling rate refers to the number of samples of the sound wave amplitude taken per second when digitizing an analog sound waveform. Therefore, "identifying frequency and sampling rate" essentially treats audio signals as data that can be directly processed by a computer. This processing method does not require knowledge of music theory, making it easier to generate vibration signals corresponding to audio signals.

[0054] S120 , outputting an audio signal using a first channel and synchronously outputting a vibration signal using a second channel, where the first channel is different from the second channel.

[0055] Since the corresponding audio signal and vibration signal have the same rhythm and the same duration of playback, "synchronization" in this step means that the corresponding audio signal and vibration signal are output at the same time, and during the output process, if the audio signal is output to the mth second at any time, the vibration signal is also output to the mth second.

[0056] In the above technical solution, since the audio signal and the vibration signal corresponding to the audio signal are pre-set in the terminal, the condition that the audio signal and the vibration signal with a corresponding relationship can be called at any time can be met. When playing music, the audio signal is output by the first channel and the vibration signal is output by the second channel synchronously. It can ensure that the vibration rhythm is synchronized with the music rhythm, and the "sound follows me" function can be realized, which can increase the fun of music playback and improve the user experience.

[0057] It should be emphasized that, in practice, if a method is adopted in which a real-time analysis is performed based on the waveform of an audio signal to obtain a vibration signal, and then the vibration signal and the audio signal are played, since the real-time analysis takes time, there is a delay in the output of the vibration signal, which will cause the output vibration rhythm to be inconsistent with the music rhythm at the same playback moment, and the "sound follows me" function cannot be realized. In addition, in this case, although in theory, adjusting the playback time of the vibration signal so that the vibration signal is output before the audio signal can achieve the goal of outputting the same vibration rhythm as the music rhythm at the same playback moment. However, in practice, how long the vibration signal is played before the audio signal is mostly determined based on empirical values. As a result, the delay can only be shortened, and the goal of completely synchronous output of the audio signal and the vibration signal cannot be accurately achieved.

[0058] Optionally, in the above technical solution, the first channel includes an amplifier and a speaker connected to the amplifier; the second channel includes an amplifier and a motor connected to the amplifier. Currently, terminals (such as mobile phones, tablets, or laptops) typically include two music output channels (also called channels), namely a left channel and a right channel. Both channels are used to play music. In practice, both the left channel and the right channel can be used as the first channel, and a second channel can be added to the terminal.

[0059] Optionally, one of the left channel and the right channel may be set as the first channel, and the speaker in the other channel may be replaced with a motor to serve as the second channel.

[0060] Optionally, the motor in the second channel is an X-axis motor. Since the X-axis motor has a clean, thick and powerful vibration, it can further improve user satisfaction.

[0061] The music playing method provided in the above technical solution can be used to play music while enjoying music, or to play music in the form of reminder information when there are unread messages, when there is a voice access request, or when the alarm setting time arrives. This disclosure does not impose any restrictions on this.

[0062] Furthermore, if music is used as a reminder of unread messages, a reminder of voice access requests, or an alarm, the volume of the audio signal and / or the vibration intensity of the vibration signal can be dynamically adjusted as needed.

[0063] Figure 3 This is a flowchart of another music playing method provided by the embodiment of the present disclosure. Figure 3 , the music playing method includes:

[0064] S210: Acquire an audio signal and a vibration signal corresponding to the audio signal; the audio signal and the vibration signal corresponding to the audio signal are pre-set in the terminal.

[0065] S220: Get the current ambient brightness.

[0066] There are many ways to implement this step, such as using a light sensor or a mobile phone camera to obtain the current ambient brightness.

[0067] S230: Determine the playback volume of the audio signal and the vibration intensity of the vibration signal based on the current ambient brightness.

[0068] S240: Utilize the first channel to output the audio signal at the playback volume of the audio signal, and simultaneously utilize the second channel to output the vibration signal at the vibration intensity of the vibration signal.

[0069] In practice, changes in the brightness of the environment in which the terminal is located often mean changes in the environment in which the terminal or even the user using the terminal is located. Setting the playback volume of the audio signal and the vibration intensity of the vibration signal based on the current ambient brightness is essentially to infer the environment in which the terminal or the user using the terminal is located based on the ambient brightness, and then to determine the playback volume of the audio signal and the vibration intensity of the vibration signal in a targeted manner, thereby realizing dynamic and intelligent adjustment of the playback volume of the audio signal and the vibration intensity of the vibration signal to further improve the user experience.

[0070] It should be noted that, in practice, when the ambient brightness value decreases, how the playback volume of the audio signal changes (increases or decreases) and how the vibration intensity of the vibration signal changes (increases or decreases) are not limited by this disclosure. In practice, they can be set according to specific circumstances.

[0071] For example, if the current ambient brightness is low, in this case, the terminal may be placed in a bag, and the volume of the audio signal and / or the vibration intensity of the vibration signal are increased to ensure that the user can perceive the reminder in time.

[0072] Furthermore, based on the current ambient brightness, other parameters (such as time or location information) can be combined to determine how the audio signal volume changes and how the vibration signal intensity changes. For example, if the current ambient brightness is less than a preset value and the current time is 12:20 at night, the audio signal volume and / or vibration signal intensity can be reduced to avoid disturbing the user's rest.

[0073] For example, if the current ambient brightness is less than a preset value, and the inertial sensor in the terminal detects that the current terminal is moving at a speed of 1m / s, it means that the current terminal may be in the user's bag and the user may be walking. In this case, you can set the audio signal playback volume to increase and / or the vibration intensity of the vibration signal to increase to ensure that the user can perceive the reminder in time.

[0074] Figure 4 This is a flowchart of another music playing method provided by the embodiment of the present disclosure. Figure 4 , the music playing method includes:

[0075] S310: Acquire an audio signal and a vibration signal corresponding to the audio signal; the audio signal and the vibration signal corresponding to the audio signal are pre-set in the terminal.

[0076] S320. Obtain the current posture parameter data of the terminal.

[0077] There are many ways to implement this step. For example, an inertial sensor can be used to obtain the current posture parameter data of the terminal.

[0078] S330: Determine the playback volume of the audio signal and the vibration intensity of the vibration signal based on the current posture parameter data.

[0079] S340: Utilize the first channel to output the audio signal at the playback volume of the audio signal, and simultaneously utilize the second channel to output the vibration signal at the vibration intensity of the vibration signal.

[0080] In practice, changes in the current posture parameters of the terminal often mean changes in the environment of the terminal or even the user using the terminal. Setting the playback volume of the audio signal and the vibration intensity of the vibration signal based on the current posture parameters is essentially to infer the environment of the terminal or the user using the terminal based on the posture parameters, and then to determine the playback volume of the audio signal and the vibration intensity of the vibration signal in a targeted manner, so as to achieve dynamic and intelligent adjustment of the playback volume of the audio signal and the vibration intensity of the vibration signal, so as to further improve the user experience.

[0081] For example, in practice, some users are accustomed to placing their terminal screen downward on the desktop when they do not want to be disturbed. In this case, if the terminal detects that the user is currently in the screen-down position and remains stationary, the volume of the audio signal is reduced and / or the vibration intensity of the vibration signal is reduced.

[0082] Furthermore, based on the current posture parameter data of the terminal and in combination with other parameters (such as time or positioning information, etc.), it can be determined how the playback volume of the audio signal changes and how the vibration intensity of the vibration signal changes.

[0083] Optionally, you can Figure 3 The technical solutions and Figure 4 Combined with the technical solutions provided in.

[0084] Based on the above technical solutions, the music playback method may optionally further include: obtaining the duration of the current music playback; and if the current music playback duration exceeds a first set threshold, increasing the playback volume of the audio signal and / or the vibration intensity of the vibration signal. The first set threshold may be any value and is not limited in this disclosure.

[0085] For example, it is assumed that the higher the audio signal playback volume level, the louder the playback volume. Similarly, the higher the vibration signal vibration intensity level, the greater the vibration intensity. If there is a voice access request, the music corresponding to the voice access request is played as a reminder message, and the timing starts from the initial moment of playback. If the playback duration is less than 10s, the playback volume of the audio signal is level one, and / or the vibration intensity of the vibration signal is level two; if the playback duration is 10s-20s, the playback volume of the audio signal is level two, and / or the vibration intensity of the vibration signal is level three; if the playback duration is more than 20s, the playback volume of the audio signal is level four, and / or the vibration intensity of the vibration signal is level five. In practice, an important reason why the user does not process the prompt tone in time after it is played is that the user does not perceive it. If the audio signal and vibration signal of the prompt tone are regarded as valid signals, and other vibrations in the environment are regarded as noise, an important reason why the user does not perceive it is that the signal-to-noise ratio of the current environment is too low. By setting the current music playback duration to be greater than the first set threshold, the playback volume of the audio signal and / or the vibration intensity of the vibration signal are increased, which essentially improves the signal-to-noise ratio, making the prompt information easier to perceive.

[0086] Based on the above technical solutions, the music playback method may optionally further include: calculating the number of times the audio signal is played within a preset time length; if the number of times the audio signal is played within the preset time length is greater than a second set threshold, increasing the volume of the audio signal and / or the vibration intensity of the vibration signal. The second set threshold can be any value and is not limited in this disclosure. The preset time length can also be any value and is not limited in this disclosure.

[0087] Because the audio signal is played multiple times within the preset time length, it often means that the user has been reminded multiple times, but the user still has not processed the reminder content. Similarly, if the audio signal and vibration signal of the reminder sound are regarded as valid signals, and other vibrations in the environment are regarded as noise, increasing the playback volume of the audio signal and / or the vibration intensity of the vibration signal can improve the signal-to-noise ratio, making the reminder information easier to perceive.

[0088] It should be noted that, in practice, when a voice access request is received, music corresponding to the voice access request is played as a reminder. If the number of times the audio signal is played within a preset time period exceeds a second set threshold (e.g., three times), this often indicates that the other party initiating the voice access request is very eager to establish a voice call with the terminal user, which often means that the other party has important matters to communicate. By increasing the playback volume of the audio signal and / or the vibration intensity of the vibration signal, it is possible to ensure that the terminal user does not miss important matters, thereby improving the user experience.

[0089] Figure 5 This is a flowchart of a music playing device provided by an embodiment of the present disclosure. Figure 5 , the music playing device comprises:

[0090] The signal acquisition module 410 is configured to acquire an audio signal and a vibration signal corresponding to the audio signal; the audio signal and the vibration signal corresponding to the audio signal are pre-stored in the terminal;

[0091] The signal output module 420 is configured to output the audio signal via a first channel and simultaneously output the vibration signal via a second channel, where the first channel is different from the second channel.

[0092] Furthermore, the first channel includes a power amplifier and a speaker connected to the power amplifier;

[0093] The second channel includes a power amplifier and a motor connected to the power amplifier.

[0094] Furthermore, the characteristic parameter data of the audio signal includes frequency and sampling rate;

[0095] The characteristic parameter data of the vibration signal include frequency and sampling rate;

[0096] The frequency variation pattern of the audio signal having a corresponding relationship is consistent with the frequency variation pattern of the vibration signal;

[0097] The sampling rate of the audio signal and the sampling rate of the vibration signal having a corresponding relationship are consistent.

[0098] Furthermore, the signal output module 420 is configured to:

[0099] Get the current ambient brightness;

[0100] Determining a playback volume of the audio signal and a vibration intensity of the vibration signal based on the current ambient brightness;

[0101] The audio signal is outputted at the playback volume of the audio signal by using the first channel, and the vibration signal is outputted at the vibration intensity of the vibration signal by using the second channel simultaneously.

[0102] Furthermore, the signal output module 420 is configured to:

[0103] Obtaining current posture parameter data of the terminal;

[0104] Determining a playback volume of the audio signal and a vibration intensity of the vibration signal based on the current posture parameter data;

[0105] The audio signal is outputted at the playback volume of the audio signal by using the first channel, and the vibration signal is outputted at the vibration intensity of the vibration signal by using the second channel simultaneously.

[0106] Furthermore, the music playing device further includes an output control module for:

[0107] Get the duration of music playback;

[0108] If the current music playing duration is longer than a first set threshold, the playing volume of the audio signal and / or the vibration intensity of the vibration signal are increased.

[0109] Furthermore, the music playing device further includes an output control module for:

[0110] Obtaining the number of times the audio signal is played within a preset time length;

[0111] If the number of times the audio signal is played within the preset time length is greater than a second set threshold, the playing volume of the audio signal and / or the vibration intensity of the vibration signal are increased.

[0112] The apparatus disclosed in the above embodiments can implement the process of the method disclosed in the above method embodiments and has the same or corresponding beneficial effects. To avoid repetition, they will not be described here.

[0113] Figure 6 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present disclosure is shown in FIG. Figure 6 As shown, the electronic device may include a smart terminal such as a mobile phone or a PAD, and the electronic device includes:

[0114] one or more processors 501, Figure 6A processor 501 is taken as an example;

[0115] Memory 502;

[0116] The electronic device may further include: an input device 503 and an output device 504 .

[0117] The processor 501, memory 502, input device 503 and output device 504 in the electronic device can be connected through a bus or other means. Figure 6 The bus connection is taken as an example.

[0118] The memory 502 is a non-transitory computer-readable storage medium that can be used to store software programs, computer executable programs, and modules, such as the program instructions / modules corresponding to the music playing method of the application program in the embodiment of the present disclosure (for example, the attached Figure 5 The processor 501 executes various functional applications and data processing of the server by running the software programs, instructions and modules stored in the memory 502, that is, implements the music playing method of the above method embodiment.

[0119] The memory 502 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 502 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 502 may optionally include a memory remotely arranged relative to the processor 501, and these remote memories may be connected to the terminal device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.

[0120] The input device 503 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the electronic device. The output device 504 may include a display device such as a display screen.

[0121] The present disclosure also provides a computer-readable storage medium storing a program or instruction, which, when executed by a computer, causes a computer to perform a music playing method, the method comprising:

[0122] Acquiring an audio signal and a vibration signal corresponding to the audio signal; the audio signal and the vibration signal corresponding to the audio signal are pre-set in the terminal;

[0123] The audio signal is outputted via a first channel, and the vibration signal is outputted via a second channel simultaneously, wherein the first channel is different from the second channel.

[0124] Optionally, when executed by a computer processor, the computer executable instructions can also be used to execute the technical solution of the music playing method provided by any embodiment of the present disclosure.

[0125] Through the above description of the implementation methods, those skilled in the art can clearly understand that the present disclosure can be implemented with the help of software and necessary general-purpose hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present disclosure is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present disclosure.

[0126] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.

[0127] The foregoing description is intended only to provide specific embodiments of the present disclosure, intended to enable those skilled in the art to understand and implement the present disclosure. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the embodiments described herein, but rather to be construed in the broadest manner consistent with the principles and novel features disclosed herein.

Claims

1. A music playing method, applicable to a terminal, characterized in that: include: Obtaining a music playback duration, an audio signal, and a vibration signal corresponding to the audio signal; wherein the audio signal and the vibration signal corresponding to the audio signal are pre-set in the terminal, and the audio signal is converted into the corresponding vibration signal according to the drum beat position; determining that the music playback duration is greater than a set threshold, determining an enhancement level, and increasing the playback volume of the audio signal and the vibration intensity of the vibration signal according to the enhancement level, wherein the set threshold has multiple first set thresholds, and different first set thresholds correspond to different playback volume levels of the audio signal and different vibration intensity levels of the vibration signal; The audio signal is outputted via a first channel, and the vibration signal is outputted via a second channel simultaneously, wherein the first channel is different from the second channel.

2. The music playing method according to claim 1, wherein: The first channel includes a power amplifier and a speaker connected to the power amplifier; The second channel includes a power amplifier and a motor connected to the power amplifier.

3. The music playing method according to claim 1, wherein: The characteristic parameter data of the audio signal include frequency and sampling rate; The characteristic parameter data of the vibration signal include frequency and sampling rate; The frequency variation pattern of the audio signal having a corresponding relationship is consistent with the frequency variation pattern of the vibration signal; The sampling rate of the audio signal and the sampling rate of the vibration signal having a corresponding relationship are consistent.

4. The music playing method according to claim 1, wherein: The step of outputting the audio signal through the first channel and synchronously outputting the vibration signal through the second channel includes: Get the current ambient brightness; Determining the playback volume of the audio signal and the vibration intensity of the vibration signal based on the current ambient brightness; The audio signal is outputted at the playback volume of the audio signal by using the first channel, and the vibration signal is outputted at the vibration intensity of the vibration signal by using the second channel simultaneously.

5. The music playing method according to claim 1, wherein: The step of outputting the audio signal through the first channel and synchronously outputting the vibration signal through the second channel includes: Obtaining current posture parameter data of the terminal; Determining a playback volume of the audio signal and a vibration intensity of the vibration signal based on the current posture parameter data; The audio signal is outputted at the playback volume of the audio signal by using the first channel, and the vibration signal is outputted at the vibration intensity of the vibration signal by using the second channel simultaneously.

6. The music playing method according to claim 1, wherein: Also includes: Obtaining the number of times the audio signal is played within a preset time length; If the number of times the audio signal is played within the preset time length is greater than a second set threshold, the playing volume of the audio signal and / or the vibration intensity of the vibration signal are increased.

7. A music playing device comprising: a signal acquisition module, configured to acquire music playback duration, an audio signal, and a vibration signal corresponding to the audio signal; wherein the audio signal and the vibration signal corresponding to the audio signal are pre-stored in the terminal, and the audio signal is converted into the corresponding vibration signal according to the drum beat position; determining that the music playback duration is greater than a set threshold, determining an enhancement level, and increasing the playback volume of the audio signal and the vibration intensity of the vibration signal according to the enhancement level, wherein the set threshold has multiple first set thresholds, and different first set thresholds correspond to different playback volume levels of the audio signal and different vibration intensity levels of the vibration signal; The signal output module is configured to output the audio signal via a first channel and simultaneously output the vibration signal via a second channel, wherein the first channel is different from the second channel.

8. An electronic device, characterized in that: include: processor and memory; The processor is configured to execute the steps of the method according to any one of claims 1 to 6 by calling the program or instructions stored in the memory.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a program or instruction, and the program or instruction enables a computer to execute the steps of the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Volume control method and device for mobile terminal, storage medium, and mobile terminal

    CN107483732A

  • Volume compensation method and mobile terminal

    CN108632466A

  • Sound signal processing method and terminal equipment

    CN110568926A