CN114201136A - Audio playing method and device - Google Patents
Audio playing method and device Download PDFInfo
- Publication number
- CN114201136A CN114201136A CN202111247728.0A CN202111247728A CN114201136A CN 114201136 A CN114201136 A CN 114201136A CN 202111247728 A CN202111247728 A CN 202111247728A CN 114201136 A CN114201136 A CN 114201136A
- Authority
- CN
- China
- Prior art keywords
- audio
- playing
- white noise
- target
- information
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 59
- 230000004044 response Effects 0.000 claims description 8
- 230000008451 emotion Effects 0.000 description 19
- 230000000694 effects Effects 0.000 description 17
- 238000010586 diagram Methods 0.000 description 10
- 238000004891 communication Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 230000033764 rhythmic process Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 230000007613 environmental effect Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000015572 biosynthetic process Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000036651 mood Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000003595 spectral effect Effects 0.000 description 2
- 238000003786 synthesis reaction Methods 0.000 description 2
- 208000023514 Barrett esophagus Diseases 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 239000012141 concentrate Substances 0.000 description 1
- 230000006735 deficit Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 239000011435 rock Substances 0.000 description 1
- 238000001228 spectrum Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 230000009900 traumatic emotion Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 230000001755 vocal effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/165—Management of the audio stream, e.g. setting of volume, audio stream path
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
The application discloses an audio playing method and device, wherein the method comprises the following steps: acquiring target information corresponding to the first audio, wherein the target information comprises at least one of the following items: the characteristic information of the first audio and the environment information of the playing device of the first audio are located; acquiring target white noise according to the target information; and playing the first audio and the target white noise.
Description
Technical Field
The present application belongs to the field of communication technologies, and in particular, to an audio playing method and apparatus.
Background
With the development of audio technology, listening to music on a music application of an electronic device has become a main way for a user to enjoy music, and the user can select favorite music among the music application to play. However, the music currently listened to by the user is a piece of music selected from the music application, that is, the electronic device can only play the music selected by the user, so that the effect of playing the music by the electronic device is single.
Disclosure of Invention
An object of the embodiments of the present application is to provide an audio playing method, an audio playing apparatus, an electronic device, and a storage medium, which can solve the problem of single effect of playing music by an electronic device,
in order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides an audio playing method, where the audio playing method includes: acquiring target information corresponding to the first audio, wherein the target information comprises at least one of the following items: the characteristic information of the first audio and the environment information of the playing device of the first audio are located; acquiring target white noise according to the target information; and playing the first audio and the target white noise.
In a second aspect, an embodiment of the present application provides an audio playing apparatus, including: the device comprises an acquisition module and a playing module. The acquisition module is used for acquiring target information corresponding to the first audio, and the target information comprises at least one of the following items: the characteristic information of the first audio and the environment information of the playing device of the first audio are located; and acquiring target white noise according to the target information. And the playing module is used for playing the first audio and the target white noise.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In an embodiment of the present application, an electronic device obtains target information corresponding to a first audio, where the target information includes at least one of: the characteristic information of the first audio and the environment information of the playing device of the first audio are located; the electronic device can then obtain the target white noise according to the target information and play the first audio and the target white noise. In this scheme, after the first audio characteristic information is acquired, the electronic device may play the first audio and the target white noise in combination with the environment information where the playing device of the first audio is located. Therefore, the user can listen to the song randomly selected from the music application program, and can also listen to the white noise of the environment where the song and the electronic equipment playing the song are located, so that the music experience of the user is enriched, and the music playing effect of the electronic equipment is enriched.
Drawings
Fig. 1 is a schematic diagram of an audio playing method provided in an embodiment of the present application;
fig. 2 is one of schematic diagrams of an example of an interface of a mobile phone according to an embodiment of the present disclosure;
fig. 3 is a second schematic diagram of an example of an interface of a mobile phone according to an embodiment of the present disclosure;
fig. 4 is a third schematic diagram of an example of an interface of a mobile phone according to an embodiment of the present disclosure;
fig. 5 is a fourth schematic diagram of an example of an interface of a mobile phone according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an audio playing apparatus according to an embodiment of the present application;
fig. 7 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present disclosure;
fig. 8 is a second schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The following describes in detail the audio playing method provided by the embodiment of the present application through specific embodiments and application scenarios thereof with reference to the accompanying drawings.
At present, with the development of audio technology, analyzing the style and type of music according to lyrics and melody by using an algorithm has become a main research direction in the audio industry, however, most manufacturers still only concentrate on improving the quality of music played by electronic equipment, expanding the sound effect experience, and neglecting the characteristic information transmitted by the music itself, so that the technical scheme of the application can play music and can also play the characteristic information of the music at the same time.
In the embodiment of the application, after the electronic device acquires the feature information of the first audio and the environment information where the playing device of the first audio is located, the electronic device may acquire the target white noise according to the information, and simultaneously play the first audio information and the target white noise. Compared with the traditional audio playing technology, the user can only select one song to play in the music application program, and cannot enjoy the atmosphere and sound effect corresponding to the characteristic information of the music more deeply.
An embodiment of the present application provides an audio playing method, and fig. 1 shows a flowchart of an audio playing method provided in an embodiment of the present application. As shown in fig. 1, the audio playing method provided in the embodiment of the present application may include steps 201 to 203 described below.
In an embodiment of the present application, the target information includes at least one of: the characteristic information of the first audio and the environment information of the playing device of the first audio.
In this embodiment of the application, after opening a music application of an electronic device, a user may select any one of audio files (for example, a first audio) to play, and at this time, the electronic device may obtain feature information of the first audio and/or environment information where a playing device (that is, the electronic device) of the first audio is located, so as to determine whether to play an audio corresponding to the feature information and/or the environment information when playing the first audio.
Optionally, in this embodiment of the application, the feature information of the first audio includes at least one of: style information of the first audio, emotion information of the first audio, and scene information of the first audio.
Optionally, in this embodiment of the application, the style information of the first audio may include at least one of: hip-hop style, rock style, classical style, jazz style, ballad style, punk style, and the like; the emotion information of the first audio may include at least one of: sadness emotion, cheerful emotion, worship emotion, romantic emotion, nostalgic emotion, melancholy emotion, tension emotion and the like; the scene information of the first audio may include at least one of: scene name information, scene environment information, character information in a scene, and the like.
Optionally, in this embodiment of the application, the electronic device may perform voice analysis on the first audio to obtain attribute information of the first audio, and then analyze the attribute information to obtain feature information of the first audio.
Optionally, in this embodiment of the application, the target information includes feature information of the first audio. The step 201 can be specifically realized by the step 201a described below.
Step 201a, the electronic device determines feature information of the first audio according to the attribute information of the first audio.
In an embodiment of the present application, the attribute information includes at least one of: playing speed information, rhythm information, orchestration information, lyric information, singer information.
Optionally, in this embodiment of the application, after the electronic device acquires the first audio, the electronic device may acquire the first audio attribute information, and determine the feature information of the first audio according to the attribute information by using an audio algorithm of a music application of the electronic device.
Illustratively, the playing speed of the audio a is between 100 and 120 beats per minute, the rhythm of the audio a has a speaking part and a singing part, and the audio a uses a synthesis drum set and a synthesizer of synthesis string music, so that the audio algorithm can determine the style of the audio a as a vocal rapper type style; the lyric information of the audio A contains positive type emotion words such as 'hard work', 'hard stepping', and the like, so that the audio algorithm can determine the emotion of the audio A as positive emotion; the terms "building a" and "building b" appear in the audio a, so the audio algorithm can determine the scene of the audio a to be expressed as the city c containing the "building a" and the "building b".
Further illustratively, the playing speed of the audio B is between 30 and 60 beats per minute, the rhythm of the audio B has a singing and harmony part, and the audio B uses a dispenser of a piano and a cello, so that the audio algorithm can determine the style of the audio B as the lyric type style; the lyric information of the audio B contains negative emotion words such as 'love lost', 'pain' and the like, so that the audio algorithm can determine the emotion of the audio B as a traumatic emotion; the terms "city" and "rain" appear in the audio B, and therefore, the audio algorithm may determine the scene to be expressed of the audio B as a rainy city.
In the embodiment of the application, after the electronic device acquires the first audio, the electronic device can determine the feature information of the first audio by using an algorithm in a music application program, so that the electronic device can quickly identify the style of the first audio, the emotion expressed by the first audio and the scene information in the audio according to the feature information, and thus, the flexibility of processing the audio by the electronic device is improved.
Optionally, in this embodiment of the application, the environment information where the playing device of the first audio is located may include at least one of the following: weather information of the environment where the playback device is located, temperature information of the environment where the playback device is located, sound information of the environment where the playback device is located (i.e., the sound timbre, volume, and the like included in the environment where the playback device is located), position information of the environment where the playback device is located, and the like.
Optionally, in this embodiment of the application, the electronic device may detect the environmental information of the current environment in real time; alternatively, the electronic device may obtain the environmental information of the current environment from a specific application (e.g., a weather-type application or a map-type application) in the electronic device.
Exemplarily, an electronic device is taken as a mobile phone. As shown in fig. 2, the mobile phone displays a playing interface 10 of a first audio (for example, an audio "city in rainy day"), a user can input the first audio in the playing interface 10, and the mobile phone acquires target information corresponding to the first audio in response to the input.
Optionally, in this embodiment of the application, the electronic device may obtain the target white noise according to the target information by using an audio understanding algorithm in the music application.
It should be noted that white noise according to the embodiment of the present application refers to a random signal or a random process in which the power spectral density of a wavelength component in a section of sound is uniform over the entire audible range (1.7cm to 17m), and the power spectral density of the wavelength component is constant. That is, the power of the signal is the same in each band, and since white light is a mixture of monochromatic lights of various frequencies (colors), the property of the signal with a flat power spectrum is called "white", and the signal is also called white noise.
Alternatively, in this embodiment of the application, the step 202 may be specifically implemented by the step 202a described below.
Step 202a, the electronic device determines a white noise matched with the target information from the plurality of white noises as a target white noise.
In the embodiment of the application, the electronic device traverses among the plurality of white noises according to the attribute information of the first audio and the environment where the first audio playing device is located, so as to search for the white noise matched with the target information of the first audio, and thus the electronic device can determine the white noise as the target white noise.
It should be noted that, of the plurality of white noises, the white noise matching the target information may be understood as: white noise of which the matching degree with the target information is greater than or equal to a preset threshold value is selected from the white noise; or the white noise with the highest matching degree with the target information in the plurality of white noises. It is to be understood that the target white noise may be one or more pieces of white noise matching the target information among a plurality of pieces of white noise.
For example, if the style information of the audio C is popular lyric music, the emotion information is impairment, and the scene information is a rainy city, the audio algorithm of the music application of the electronic device may traverse a "rain" white noise or a "city traffic" white noise matching the audio C from the white noise audio library according to the above information.
Optionally, in an embodiment of the present application, the white noises are white noises in a local white noise audio library of the electronic device; alternatively, the plurality of white noises may be white noises searched by a target application (for example, a browser application).
In the embodiment of the application, the electronic device can determine the target white noise matched with the first audio from the plurality of white noises, and play the target white noise when the user plays the first audio, so that the flexibility of the electronic device in playing the white noise is improved.
In this embodiment of the application, the electronic device may play the target white noise in the process of playing the first audio, that is, the electronic device may start to play the target white noise from a position in the first audio.
Optionally, in this embodiment of the application, the electronic device may play the target white noise first, and then play the first audio; alternatively, the electronic device can play the first audio first and then play the target white noise.
Optionally, in this embodiment of the application, the electronic device may start to play the first audio after a preset duration after the target white noise is played; alternatively, the electronic device may start playing the target white noise after a preset time after playing the first audio.
Alternatively, in this embodiment of the application, the step 203 may be specifically implemented by the following step 203a or step 203 b.
Step 203a, the electronic device simultaneously plays the first audio and the target white noise.
In the embodiment of the application, the electronic device can start to play the first audio from the current stop moment of the first audio and simultaneously play the target white noise.
Optionally, in this embodiment of the application, if the audio duration of the target white noise is less than the audio duration of the first audio, when the electronic device simultaneously plays the first audio and the target white noise, if the playing of the target white noise is finished and the playing of the first audio is not finished, the target white noise may be continuously and repeatedly played until the playing of the first audio is finished.
Optionally, in this embodiment of the application, if the audio duration of the target white noise is greater than the audio duration of the first audio, when the electronic device can play the first audio and the target white noise simultaneously, if the playing of the first audio is finished and the playing of the target white noise is not finished, the target white noise can be continuously and repeatedly played, and the end of the playing of the target white noise is indicated.
Step 203b, the electronic device plays the first audio, and plays the target white noise at the position corresponding to the target information in the first audio.
It should be noted that, the position corresponding to the target information in the first audio may be understood as: the first audio is the same as or similar to emotion information, scene information and the like expressed by target white noise; or the environmental information of the first audio is the same as or similar to the emotion information, scene information and the like expressed by the target white noise.
In the embodiment of the application, the electronic equipment can play the first audio and the target white noise in multiple modes, so that richer choices and music experience are brought to a user, and the audio playing effect of the electronic equipment is enriched.
The embodiment of the application provides an audio playing method, and an electronic device can acquire a target white noise according to target information corresponding to a first audio, namely feature information of the first audio and/or environment information where a playing device of the first audio is located, and play the first audio and the target white noise. In the scheme, when the electronic equipment plays the first audio, the target information corresponding to the first audio can be acquired first, and then the target white noise is acquired by combining the target information, so that the first audio and the target white noise are played, namely, when the electronic equipment plays the first audio, the white noise related to the first audio is also played, and therefore the diversity and the flexibility of the electronic equipment for playing the audio are improved.
Optionally, in this embodiment of the present application, before the step 203, the audio playing method provided in this embodiment of the present application further includes the following step 301, and the step 203 may also be implemented by the following step 203 c.
Step 301, in the case of displaying a playing interface of the first audio, the electronic device receives a first input of a user.
Optionally, in this embodiment of the application, the first input may be a click input (for example, a click input to a play control) of a user in a play interface of the first audio, a long-press input, a sliding input, or a combination input of a physical button or a physical button of the electronic device by the user, so as to trigger the electronic device to play the first audio and display an image corresponding to the target white noise. The specific determination can be determined according to the actual use requirement of the user, and the embodiment of the application is not limited at all.
Optionally, in this embodiment of the application, the playing interface of the first audio includes a playing control and an atmosphere control. The first input comprises a first sub-input and a second sub-input, the first sub-input is input of a user to the playing control to trigger the electronic equipment to play the first audio, and the second sub-input is input of the user to the atmosphere control to trigger the electronic equipment to display the image corresponding to the target white noise.
Exemplarily, referring to fig. 2, as shown in fig. 3, a mobile phone displays an audio playing interface 10, and displays a playing interface of a song "city in rainy day" in the playing interface 10, a playing control 11 is also displayed in the audio playing interface 10, and a user can perform a click input on the playing control 11 to trigger an electronic device to play a song in cloudy days and a target white noise corresponding to the song, and display an image (e.g., a city in rainy day) corresponding to the target white noise in a preset area 12 of the audio playing interface 10, so as to bring a richer music experience to the user.
Step 203c, the electronic device responds to the first input, plays the first audio and the target white noise, and displays the first image in a playing interface of the first audio.
In an embodiment of the present application, the first image is an image corresponding to a target white noise.
It should be noted that, for the method for playing the first audio and the target white noise by the electronic device, reference may be made to the description in the foregoing embodiments, and details are not repeated here.
In the embodiment of the present application, the image corresponding to the target white noise may be understood as: the image attribute information is the same as or similar to emotion information, scene information, and the like expressed by the target white noise.
Optionally, in this embodiment of the application, the image attribute information may include at least one of: the image content, the image location information, the image environment information, the image style information, and the image color information may be determined according to the actual use requirement of the user, and the embodiment of the present application is not limited at all.
Optionally, in this embodiment of the application, the first image may be a static image or a dynamic image.
Optionally, in this embodiment of the application, the electronic device may display the first image while playing the first audio and the target white noise; alternatively, the electronic device may display the first image at a user-defined display time; or after the preset time length after the first audio and the target white noise are played, the electronic equipment displays the first image; or, the electronic device may display the first image when the target white noise starts to be played; the specific determination can be determined according to the actual use requirement of the user, and the embodiment of the application is not limited at all.
Optionally, in this embodiment of the application, the electronic device may display the first image in a preset area; alternatively, the electronic device may display the first image in a user-defined area; or the electronic device may hover the first image over the audio playback interface. The specific determination can be determined according to the actual use requirement of the user, and the embodiment of the application is not limited at all.
Optionally, in this embodiment of the application, the electronic device may display the first image in a picture form; alternatively, the electronic device may display the first image in a moving picture format; alternatively, the electronic device may display the first image in video form.
Illustratively, if the singer of the first audio is character a, the first image may also be a portrait image on which character a is displayed; if the distributor of the first audio is the instrument B, the first image may also be an image on which the instrument B is displayed, or the like.
Optionally, in this embodiment of the application, after the electronic device displays the first image, the user may input the first image to trigger the electronic device to change the display form of the first image.
Optionally, in this embodiment of the application, a full-screen special effect control may be further displayed in the atmosphere control in the playing interface of the first audio, and a user may input the full-screen special effect control to trigger the electronic device to display the first image in a full-screen special effect manner.
Optionally, in this embodiment of the application, after the electronic device displays the first image on the play interface of the first audio, the electronic device may receive an input of the atmosphere control from the user, so as to trigger the electronic device to close displaying the first image.
In the embodiment of the application, the electronic equipment can play the first audio and the target white noise corresponding to the first audio in the audio playing interface, can also display the image corresponding to the target white noise for the user, improves the experience of listening to music by the user, and brings rich visual experience for the user, so that the effect of playing the audio by the electronic equipment is enriched.
Optionally, in this embodiment of the present application, after the step 203c, the audio playing method provided in this embodiment of the present application further includes the following step 203 d.
And step 203d, under the condition that the environment where the playing device of the first audio is detected to be changed, the electronic device updates the first image into the second image.
In this embodiment of the application, the second image is an image corresponding to the environment information where the playing device of the first audio is currently located.
In the embodiment of the application, the electronic device can detect the environment where the playing device of the first audio is located in real time, and after the environment where the playing device of the first audio is located changes, the electronic device can acquire and display the image corresponding to the environment information according to the changed environment information.
Optionally, in this embodiment of the application, if the electronic device detects that the weather where the playing device of the first audio is located changes, the electronic device may update the first image to the second image; if the electronic equipment detects that the position of the playing equipment of the first audio is changed, the electronic equipment updates the first image into a second image; if the electronic device detects that the climate where the playing device of the first audio is located changes, the electronic device updates the first image to be the second image.
For example, if the electronic device detects that the current weather changes from a sunny day to a rainy day, the electronic device may update the first image representing the sunny day to the second image representing the rainy day; if the electronic device detects that the current position is changed from the city to the village, the electronic device may update the first image representing the city to the second image representing the village; if the electronic device detects that the current climate changes from hot to cold, the electronic device may update the first image representing hot to the second image representing cold.
Illustratively, referring to fig. 3, as shown in fig. 4, the mobile phone displays an audio playing interface 10, and displays a playing interface of a song "city in rainy day" in the playing interface 10, and displays a first image corresponding to the song in a preset area 12, and if the mobile phone detects that the position of the user changes, for example, from the city to a village, the mobile phone updates the first image to a second image, for example, to the rainy village, in the preset area 12.
In the embodiment of the application, the electronic equipment can display the image corresponding to the first audio according to the current environment information, so that the music experience of a user is enriched, and the flexibility of displaying the first image by the electronic equipment is improved.
Optionally, in this embodiment of the present application, after the step 203, the audio playing method provided in this embodiment of the present application further includes the following steps 401 and 402.
Step 401, the electronic device receives a second input of the user.
In an embodiment of the application, the second input is used to trigger the electronic device to adjust the volume of the first audio and/or the target white noise.
Optionally, in this embodiment of the application, the second input may be input by a user to a physical key or a combination of physical keys of the electronic device, so as to trigger the electronic device to adjust the volume of the target audio; or, the audio playing interface further includes an adjustment control, and the second input may be input to the adjustment control by a user to trigger the electronic device to adjust the volume of the target audio; or, the second input may include a third sub-input and a fourth sub-input, where the third sub-input is a click input of a user on an adjustment control to trigger the electronic device to display a plurality of adjustment sliders, each adjustment slider corresponds to one audio, and the fourth sub-input is a slide input or a drag input of the user on any adjustment slider to trigger the electronic device to perform volume adjustment on the audio corresponding to the any adjustment slider. The specific method can be determined according to actual use requirements, and the embodiment of the application is not limited.
Exemplarily, referring to fig. 4, as shown in fig. 5, the mobile phone displays an adjustment control 13 in the audio playing interface 10, the user can click and input the adjustment control to trigger the electronic device to display a target window 14, and display an "ambience" adjustment slider 15 and a "music volume" adjustment slider 16 in the target window, and the user can slide and input the "ambience" adjustment slider 15 to trigger the electronic device to adjust the volume of the target white noise.
Step 402, the electronic device adjusts the volume of the target audio in response to the second input.
In an embodiment of the present application, the target audio includes at least one of: the first audio and the target white noise.
In the embodiment of the application, after the electronic device plays the first audio and the target white noise, the volume of the first audio and the target white noise can be adjusted at any time, so that the volume of the target audio is the volume which is most suitable for user requirements, the user experience is improved, and the flexibility of the electronic device in playing the target audio is improved.
It should be noted that, in the audio playing method provided in the embodiment of the present application, the execution main body may be an electronic device, an audio playing apparatus, or a control module in the audio playing apparatus for executing the audio playing method. In the embodiment of the present application, an electronic device is taken as an example to execute an audio playing method, which illustrates the audio playing method provided in the embodiment of the present application.
Fig. 6 shows a schematic diagram of a possible structure of an audio playing apparatus according to an embodiment of the present application. As shown in fig. 6, the audio playing device 70 may include: an acquisition module 71 and a play module 72.
The obtaining module 71 is configured to obtain target information corresponding to the first audio, where the target information includes at least one of the following: the characteristic information of the first audio and the environment information of the playing device of the first audio are located; and acquiring target white noise according to the target information. And a playing module 72 for playing the first audio and the target white noise.
The embodiment of the application provides an audio playing device, and after first audio characteristic information is acquired, an electronic device can play a first audio and a target white noise by combining environment information where a playing device of the first audio is located. Therefore, the user can listen to the song randomly selected from the music application program, and can also listen to the white noise of the environment where the song and the electronic equipment playing the song are located, so that the music experience of the user is enriched, and the music playing effect of the electronic equipment is enriched.
In a possible implementation manner, the target information includes feature information of the first audio; the obtaining module 71 is specifically configured to determine feature information of the first audio according to the attribute information of the first audio; wherein the attribute information includes at least one of: playing speed information, rhythm information, orchestration information, lyric information, singer information; the feature information of the first audio includes at least one of: style information, mood information, scene information.
In a possible implementation manner, the obtaining module 71 is specifically configured to determine a white noise matched with the target information from the white noises as the target white noise.
In a possible implementation manner, the playing module 72 is specifically configured to play the first audio and the target white noise simultaneously; alternatively, the playing module 72 is specifically configured to play the first audio, and play the target white noise at a position in the first audio corresponding to the target information.
In a possible implementation manner, the audio playing apparatus 70 further includes: and a receiving module. The receiving module is further configured to receive a first input of the user in a case that the playing interface of the first audio is displayed before the playing module 72 plays the first audio and the target white noise. The playing module 72 is specifically configured to play the first audio and the target white noise in response to the first input received by the receiving module, and display a first image in a playing interface of the first audio, where the first image is an image corresponding to the target white noise.
In a possible implementation manner, the audio playing apparatus 70 further includes: and updating the module. And an updating module, configured to update the first image to a second image when detecting that an environment where the playing device of the first audio is located changes after the playing module 72 displays the first image in the playing interface of the first audio, where the second image is an image corresponding to the environment information where the playing device of the first audio is currently located.
In a possible implementation manner, the audio playing apparatus 70 further includes: the device comprises a receiving module and an adjusting module. A receiving module, configured to receive a second input of the user after the playing module 72 plays the first audio and the target white noise. An adjustment module for adjusting a volume of a target audio in response to the second input received by the receiving module, the target audio including at least one of: the first audio and the target white noise.
The audio playing device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The audio playing device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The audio playing device provided by the embodiment of the application can realize each process realized by the method embodiment, and can achieve the same technical effect, and for avoiding repetition, the details are not repeated here.
Optionally, as shown in fig. 7, an electronic device 90 is further provided in this embodiment of the present application, and includes a processor 91, a memory 92, and a program or an instruction stored in the memory 92 and executable on the processor 91, where the program or the instruction is executed by the processor 91 to implement the processes of the foregoing method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 100 includes, but is not limited to: a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
Those skilled in the art will appreciate that the electronic device 100 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 8 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 110 is configured to obtain target information corresponding to the first audio, where the target information includes at least one of: the characteristic information of the first audio and the environment information of the playing device of the first audio are located; and acquiring target white noise according to the target information. And the audio output unit 103 is used for playing the first audio and the target white noise.
The embodiment of the application provides electronic equipment, and the electronic equipment can play a first audio and a target white noise by combining environment information where playing equipment of the first audio is located after the first audio characteristic information is acquired. Therefore, the user can listen to the song randomly selected from the music application program, and can also listen to the white noise of the environment where the song and the electronic equipment playing the song are located, so that the music experience of the user is enriched, and the music playing effect of the electronic equipment is enriched.
Optionally, in this embodiment of the application, the target information includes feature information of the first audio; the processor 110 is specifically configured to determine feature information of the first audio according to the attribute information of the first audio; wherein the attribute information includes at least one of: playing speed information, rhythm information, orchestration information, lyric information, singer information; the feature information of the first audio includes at least one of: style information, mood information, scene information.
Optionally, in this embodiment of the application, the processor 110 is specifically configured to determine a white noise matched with the target information from the white noises as the target white noise.
Optionally, in this embodiment of the application, the audio output unit 103 is specifically configured to play the first audio and the target white noise simultaneously; or, the audio output unit 103 is specifically configured to play the first audio, and play the target white noise at a position in the first audio corresponding to the target information.
Optionally, in this embodiment of the application, the user input unit 107 is configured to receive a first input of a user in a case that a playing interface of the first audio is displayed before the playing of the first audio and the target white noise. The audio output unit 103 is specifically configured to play a first audio and a target white noise in response to a first input, and display a first image in a playing interface of the first audio, where the first image is an image corresponding to the target white noise.
Optionally, in this embodiment of the application, the processor 110 is further configured to update the first image to a second image after the first image is displayed in the playing interface of the first audio and when it is detected that the environment where the playing device of the first audio is located changes, where the second image is an image corresponding to the environment information where the playing device of the first audio is currently located.
Optionally, in this embodiment of the application, the user input unit 107 is further configured to receive a second input from the user after the first audio and the target white noise are played. A processor 110, further configured to adjust a volume of a target audio in response to a second input, the target audio including at least one of: the first audio and the target white noise.
The electronic device provided by the embodiment of the application can realize each process realized by the method embodiment, and can achieve the same technical effect, and for avoiding repetition, the details are not repeated here.
The beneficial effects of the various implementation manners in this embodiment may specifically refer to the beneficial effects of the corresponding implementation manners in the above method embodiments, and are not described herein again to avoid repetition.
It should be understood that, in the embodiment of the present application, the input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics Processing Unit 1041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also referred to as a touch screen. The touch panel 1071 may include two parts of a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 109 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 110 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements the processes of the foregoing method embodiments, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the foregoing method embodiments, and can achieve the same technical effect, and in order to avoid repetition, the details are not repeated here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (10)
1. An audio playing method, the method comprising:
acquiring target information corresponding to the first audio, wherein the target information comprises at least one of the following items: the characteristic information of the first audio and the environment information of the playing device of the first audio are located;
acquiring target white noise according to the target information;
and playing the first audio and the target white noise.
2. The method of claim 1, wherein the playing the first audio and the target white noise comprises:
simultaneously playing the first audio and the target white noise;
or,
and playing the first audio and playing the target white noise at the position corresponding to the target information in the first audio.
3. The method of claim 1, wherein prior to the playing the first audio and the target white noise, the method further comprises:
receiving a first input of a user under the condition that a playing interface of the first audio is displayed;
the playing the first audio and the target white noise comprises:
responding to the first input, playing the first audio and the target white noise, and displaying a first image in a playing interface of the first audio, wherein the first image is an image corresponding to the target white noise.
4. The method of claim 3, wherein after displaying the first image in the playback interface of the first audio, the method further comprises:
and under the condition that the change of the environment where the playing equipment of the first audio is located is detected, updating the first image into a second image, wherein the second image is an image corresponding to the environment information where the playing equipment of the first audio is currently located.
5. The method of claim 1, wherein after the playing the first audio and the target white noise, the method further comprises:
receiving a second input of the user;
in response to the second input, adjusting a volume of a target audio, the target audio including at least one of: the first audio and the target white noise.
6. An audio playback apparatus, comprising: the device comprises an acquisition module and a playing module;
the acquisition module is configured to acquire target information corresponding to a first audio, where the target information includes at least one of the following: the characteristic information of the first audio and the environment information of the playing device of the first audio are located; acquiring target white noise according to the target information;
the playing module is used for playing the first audio and the target white noise.
7. The apparatus of claim 6, wherein the playing module is specifically configured to play the first audio and the target white noise simultaneously;
or,
and playing the first audio and playing the target white noise at the position corresponding to the target information in the first audio.
8. The apparatus of claim 6, wherein the audio playing apparatus further comprises: a receiving module;
the receiving module is further configured to receive a first input of a user under the condition that a playing interface of the first audio is displayed before the first audio and the target white noise are played in the playing and playing mode;
the playing module is specifically configured to play the first audio and the target white noise simultaneously; or playing the first audio and playing the target white noise at the position corresponding to the target information in the first audio.
9. The apparatus of claim 8, wherein the audio playing apparatus further comprises: an update module;
the updating module is configured to update the first image to a second image when detecting that an environment where the playing device of the first audio is located changes after the playing module displays the first image in the playing interface of the first audio, where the second image is an image corresponding to environment information where the playing device of the first audio is currently located.
10. The apparatus of claim 6, wherein the audio playing apparatus further comprises:
the device comprises a receiving module and an adjusting module;
the receiving module is used for receiving a second input of a user after the playing module plays the first audio and the target white noise;
the adjusting module is configured to adjust a volume of a target audio in response to the second input received by the receiving module, where the target audio includes at least one of: the first audio and the target white noise.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111247728.0A CN114201136A (en) | 2021-10-26 | 2021-10-26 | Audio playing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111247728.0A CN114201136A (en) | 2021-10-26 | 2021-10-26 | Audio playing method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114201136A true CN114201136A (en) | 2022-03-18 |
Family
ID=80646341
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111247728.0A Pending CN114201136A (en) | 2021-10-26 | 2021-10-26 | Audio playing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114201136A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104410748A (en) * | 2014-10-17 | 2015-03-11 | 广东小天才科技有限公司 | Method for adding background sound effect according to position of mobile terminal and mobile terminal |
CN105468328A (en) * | 2014-09-03 | 2016-04-06 | 联想(北京)有限公司 | Information processing method and electronic device |
US20160132533A1 (en) * | 2014-04-22 | 2016-05-12 | Sk Planet Co., Ltd. | Device for providing image related to replayed music and method using same |
WO2019051689A1 (en) * | 2017-09-13 | 2019-03-21 | 深圳传音通讯有限公司 | Sound control method and apparatus for intelligent terminal |
CN111831249A (en) * | 2020-07-07 | 2020-10-27 | Oppo广东移动通信有限公司 | Audio playing method and device, storage medium and electronic equipment |
-
2021
- 2021-10-26 CN CN202111247728.0A patent/CN114201136A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160132533A1 (en) * | 2014-04-22 | 2016-05-12 | Sk Planet Co., Ltd. | Device for providing image related to replayed music and method using same |
CN105468328A (en) * | 2014-09-03 | 2016-04-06 | 联想(北京)有限公司 | Information processing method and electronic device |
CN104410748A (en) * | 2014-10-17 | 2015-03-11 | 广东小天才科技有限公司 | Method for adding background sound effect according to position of mobile terminal and mobile terminal |
WO2019051689A1 (en) * | 2017-09-13 | 2019-03-21 | 深圳传音通讯有限公司 | Sound control method and apparatus for intelligent terminal |
CN111831249A (en) * | 2020-07-07 | 2020-10-27 | Oppo广东移动通信有限公司 | Audio playing method and device, storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9607594B2 (en) | Multimedia apparatus, music composing method thereof, and song correcting method thereof | |
US9691429B2 (en) | Systems and methods for creating music videos synchronized with an audio track | |
US20170124188A1 (en) | Systems and methods to facilitate media search | |
CN113365134B (en) | Audio sharing method, device, equipment and medium | |
CN107832434A (en) | Method and apparatus based on interactive voice generation multimedia play list | |
CN109299318A (en) | Method, apparatus, storage medium and the terminal device that music is recommended | |
CN106649586A (en) | Playing method of audio files and device of audio files | |
CN112445395B (en) | Music piece selection method, device, equipment and storage medium | |
CN112269898A (en) | Background music obtaining method and device, electronic equipment and readable storage medium | |
CN106468987B (en) | Information processing method and client | |
WO2018223837A1 (en) | Music playing method and related product | |
CN112416229A (en) | Audio content adjusting method and device and electronic equipment | |
CN110430326B (en) | Ring editing method and device, mobile terminal and storage medium | |
CN109657236A (en) | Guidance information acquisition methods, device, electronic device and storage medium | |
CN111785238B (en) | Audio calibration method, device and storage medium | |
CN108090140A (en) | A kind of playback of songs method and mobile terminal | |
US11272136B2 (en) | Method and device for processing multimedia information, electronic equipment and computer-readable storage medium | |
CN109616090B (en) | Multi-track sequence generation method, device, equipment and storage medium | |
US20220147558A1 (en) | Methods and systems for automatically matching audio content with visual input | |
CN111491211A (en) | Video processing method, video processing device and electronic equipment | |
US8681157B2 (en) | Information processing apparatus, program, and information processing method | |
CN109873905A (en) | Audio frequency playing method, audio synthetic method, device and storage medium | |
CN110347864A (en) | Method and system for intelligently adjusting audio parameters | |
CN113805838A (en) | Multimedia information processing method and device and electronic equipment | |
CN111666445A (en) | Scene lyric display method and device and sound box equipment |
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 |