Audio playback method, device, storage medium and electronic device

By determining the target geographical location in the electronic device and obtaining the ambient audio, and generating the audio to be played, the existing problem of a single audio playback function is solved, a rich audio playback method is realized, and the user experience is improved.

CN111831249BActive Publication Date: 2024-10-18GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202010647323.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-07
Publication Date
2024-10-18
Estimated Expiration
2040-07-07

AI Technical Summary

Technical Problem

The audio playback functions of existing electronic devices are single, lack diversity, and cannot provide personalized audio experience based on the user's geographical location.

Method used

By determining the target geographical location, the ambient audio of the geographical location is obtained, and the audio to be played is generated based on these audios to realize dynamic playback of audio and provide rich audio playback methods.

Benefits of technology

It provides users with a method to generate audio to be played using ambient audio from a specific geographical location, which improves the diversity of audio playback and user experience, and enhances immersion.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111831249B_ABST
    Figure CN111831249B_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose an audio playback method, device, storage medium and electronic device, wherein the embodiments of the present application determine at least one target geographic location; obtain ambient audio corresponding to the at least one target geographic location, generate audio to be played based on the ambient audio; and play the audio to be played. Through this solution, a variety of audio playback methods are provided to users, thereby improving user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic equipment, and in particular to an audio playback method, device, storage medium and electronic equipment. Background Art

[0002] With the development of electronic devices, the functions of electronic devices have become more diversified. For example, some electronic devices provide some white noise software to help users concentrate by playing specific audio. However, these software generally only have audio playback functions, and the audio playback method is relatively simple. Summary of the invention

[0003] The embodiments of the present application provide an audio playback method, device, storage medium and electronic device, which can implement a solution for playing audio in combination with geographic location and enrich the audio playback mode.

[0004] In a first aspect, an embodiment of the present application provides an audio playback method, comprising:

[0005] identifying at least one target geographic location;

[0006] Acquire ambient audio corresponding to the at least one target geographic location, and generate audio to be played according to the ambient audio;

[0007] Play the audio to be played.

[0008] In a second aspect, an embodiment of the present application further provides an audio playback device, comprising:

[0009] A location determination module, configured to determine at least one target geographic location;

[0010] An audio acquisition module is used to acquire the ambient audio of at least one target geographic location and generate the audio to be played based on the ambient audio

[0011] The audio playing module is used to play the audio to be played.

[0012] In a third aspect, an embodiment of the present application further provides a storage medium on which a computer program is stored. When the computer program is run on a computer, the computer executes an audio playback method provided in any embodiment of the present application.

[0013] In a fourth aspect, an embodiment of the present application further provides an electronic device, comprising a processor and a memory, wherein the memory has a computer program, and the processor executes an audio playback method provided in any embodiment of the present application by calling the computer program.

[0014] The technical solution provided in the embodiment of the present application determines at least one target geographic location, obtains the ambient audio of the at least one target geographic location, generates the audio to be played based on the ambient audio, and plays the audio to be played. Through the solution of the present application, it is possible to generate the audio to be played using the ambient audio of a specific geographic location, provide users with a variety of audio playback methods, and enhance user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0016] Figure 1 A first flow chart of the audio playback method provided in an embodiment of the present application.

[0017] Figure 2 A schematic diagram of an audio playback interface of the audio playback method provided in an embodiment of the present application.

[0018] Figure 3 A schematic diagram of another audio playback interface of the audio playback method provided in an embodiment of the present application.

[0019] Figure 4 A schematic diagram of another audio playback interface of the audio playback method provided in an embodiment of the present application.

[0020] Figure 5 A second flow chart of the audio playback method provided in an embodiment of the present application.

[0021] Figure 6 A schematic diagram of the structure of an audio playback device provided in an embodiment of the present application.

[0022] Figure 7 A first structural schematic diagram of an electronic device provided in an embodiment of the present application.

[0023] Figure 8 A second structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0025] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0026] The embodiment of the present application provides an audio playback method, and the execution subject of the audio playback method can be an audio playback device provided in the embodiment of the present application, or an electronic device integrated with the audio playback device, wherein the audio playback device can be implemented in hardware or software. The electronic device can be a smart phone, a tablet computer, a PDA, a laptop computer, or a desktop computer.

[0027] See also Figure 1 , Figure 1 This is a schematic diagram of a first process flow of the audio playback method provided in the embodiment of the present application. The specific process flow of the audio playback method provided in the embodiment of the present application may be as follows:

[0028] In 101 , at least one target geographic location is determined.

[0029] In the embodiments of the present application, for example, a city-themed music experience application is provided, which provides multiple geographical areas, wherein the range of a geographical area on the map can be set as needed. For example, in some embodiments, a city can be used as a geographical area, such as Beijing, Shanghai, Tokyo, New York, etc.

[0030] After launching the application, the user can select a geographical area from multiple geographical areas as the target geographical area. After determining the target geographical area selected by the user, the user enters the interface corresponding to the target geographical area, wherein the background image of the audio playback interface can be a map of the target geographical area, and the map can be abstractly represented or simplified, for example, see Figure 2 and Figure 3 , Figure 2 and Figure 3 A schematic diagram of an audio playback interface of an audio playback method provided in an embodiment of the present application. If the target geographical area is a map of a city, the lines connecting the main roads of the city can be used to simplify the city as a background image for audio playback. Alternatively, in another embodiment, the outline of the city can also be used to abstractly represent the map of the city.

[0031] In some embodiments, for different geographical areas, maps of different colors and / or styles may be used to present the characteristics of the geographical areas.

[0032] In one embodiment, determining at least one target geographic location includes: displaying a geographic area interface on a display device, the geographic area interface including at least one geographic area; in response to a first operation performed on the geographic area interface, determining the geographic area corresponding to the first operation as the target geographic area, and displaying the target geographic area and at least one geographic location contained in the target geographic area; in response to a second operation performed on the at least one geographic location, determining the geographic location corresponding to the second operation as the target geographic location.

[0033] See also Figure 2 , Figure 2 A schematic diagram of an audio playback interface of the audio playback method provided in an embodiment of the present application. After the user starts the application, the geographical area interface is first displayed on the display screen of the electronic device. The geographical area interface includes multiple preset geographical areas for the user to select. When the user triggers a first operation based on the area selection interface, the geographical area selected by the user is determined according to the first operation, and it is determined as the target geographical area, and the audio playback interface corresponding to the target geographical area is entered, such as Figure 2 As shown, the target geographic area includes three selectable geographic locations: A, B, and C. When the user triggers the second operation based on at least one geographic location, the target geographic area selected by the user is determined according to the second operation. For example, the user can determine the target geographic location to be selected by a single click operation or a long press operation, wherein, according to the user's selection, there can be one or more target geographic locations, and of course there can be multiple selectable geographic locations. This embodiment only provides an example and does not limit the number of selectable geographic locations and the number of geographic locations actually selected by the user. Assuming that the user selects geographic locations A and C, geographic locations A and C can be determined as target geographic locations through the second operation.

[0034] In 102, ambient audio corresponding to the at least one target geographic location is obtained, and audio to be played is generated according to the ambient audio.

[0035] In 103, the audio to be played is played.

[0036] After the user determines the target geographic location, the electronic device obtains an audio database corresponding to the target geographic area from a preset database, and determines ambient audio matching at least one target geographic location selected by the user from the audio database.

[0037] For each geographical area, a plurality of geographical locations are pre-set for users to select, such as some specific locations: parks, roads, buildings, etc., and the environmental sounds of these locations are collected and stored as audio data corresponding to the target geographical area. In one embodiment, the environmental audio includes the first environmental audio at the geographical location and the second environmental audio on the path between every two geographical locations. The first environmental audio is stored in a one-to-one correspondence with the corresponding geographical location, and the second environmental audio is stored in a one-to-one correspondence with the path.

[0038] In one embodiment, "obtaining ambient audio of at least one target geographic location, and generating audio to be played based on the ambient audio" includes: when there are multiple target geographic locations, obtaining path information between any two of the multiple target geographic locations; obtaining multiple first ambient audios corresponding to the multiple target geographic locations, and obtaining at least one second ambient audio corresponding to the path information; generating the audio to be played based on the multiple first ambient audios and the at least one second ambient audio.

[0039] In this embodiment, the target geographic location selected by the user is determined, and when the user selects multiple target geographic locations, path information is generated based on the multiple target geographic locations. For example, if the user selects geographic locations A and C, the pre-stored path information between the two locations A and C is obtained, wherein there may be one or more paths between A and C, and then the first ambient audio corresponding to location A is obtained, the first ambient audio at location B is obtained, and the second ambient audio corresponding to the path between A and C is obtained, and the multiple first ambient audios and the multiple second ambient audios are combined in sequence as audio to be played, or the multiple first ambient audios and the multiple second ambient audios are arranged in sequence as audio to be played.

[0040] For example, in one embodiment, "generating the audio to be played based on the multiple first ambient audios and the at least one second ambient audio" includes: determining the order of precedence between the multiple target geographic locations; determining the arrangement order between the multiple first ambient audios and the at least one second ambient audio based on the order of precedence between the multiple target geographic locations and the path information; and synthesizing the multiple first ambient audios and the at least one second ambient audio into a video to be played based on the arrangement order.

[0041] In this embodiment, the order among the multiple target geographical locations may be determined according to the order in which the user selects the multiple target geographical locations. Alternatively, in another embodiment, the order among the multiple target geographical locations is determined randomly.

[0042] For example, if the user selects three locations A, B, and C, there are three path information in total, path D1 between A and B, path D2 between B and C, and path D3 between C and A. The corresponding ambient audio of A, B, C, D1, D2, and D3 can be combined into the audio to be played in the order of A->D1->B->D2->C->D3->A. In order to play the audio to be played later, the corresponding ambient audio of A, B, C, D1, D2, and D3 can be played in the order of A->D1->B->D2->C->D3->A.

[0043] In specific implementation, the present application is not limited by the execution order of the various steps described. If no conflict occurs, some steps can be performed in other orders or simultaneously.

[0044] From the above, it can be seen that the audio playback method provided in the embodiment of the present application determines at least one target geographic location, obtains the ambient audio of the at least one target geographic location, generates the audio to be played based on the ambient audio, and plays the audio to be played. Through the scheme of the present application, it is possible to generate the audio to be played using the ambient audio of a specific geographic location, provide users with a variety of audio playback methods, and enhance user experience.

[0045] In some embodiments, "determining at least one target geographic location" further includes: determining a target area matching the at least one target geographic location and displaying the target area on a display device.

[0046] “The playing of the audio to be played” also includes: dynamically displaying the playing progress of the audio to be played based on a preset element in the target area that matches the target geographical location.

[0047] In this embodiment, after the user determines the target geographic location, the electronic device determines a target area matching the at least one target geographic location from the target geographic area and displays the target area on the interface. Figure 3 , Figure 3 Another audio playback interface diagram of the audio playback method provided in the embodiment of the present application. Assuming that the user selects geographic locations A and C, the entire area of ​​the target geographic area including the geographic locations A and C and the path between A and C is taken as the target area, and the display interface is switched from the target geographic area to the target area by enlarging the target area. Figure 2 Switch the displayed content to Figure 3 Content shown.

[0048] Among them, the preset element may be environment information or path information.

[0049] For example, in one embodiment, "dynamically displaying the playback progress of the audio to be played based on a preset element in the target area that matches the target geographic location" includes: obtaining environmental information and path information corresponding to the target geographic location; generating a playback progress bar based on the positions of the environmental information and the path information in the target area; dynamically adjusting the position of the progress mark on the playback progress bar based on the playback progress of the audio to be played, wherein the geographic location currently indicated by the progress mark on the playback progress bar matches the geographic location corresponding to the current playback content of the audio to be played.

[0050] See also Figure 4 , Figure 4 Another audio playback interface diagram of the audio playback method provided in the embodiment of the present application. When there are multiple target geographic locations, after switching the interface to the target area, the audio to be played is played. At the same time, the path between A and C on the background image can be identified, and the path and the environment around A and C, such as roads within a specific range around A and C, are used to indicate the progress of audio playback. For example, the roads within a specific range around A and C (such as Figure 4 The location marked by the triangle symbol in the figure), and the path connection between A and C (such as Figure 4 The position marked by the dot in the middle constitutes the entire playback progress bar of the audio to be played. As the audio is played, the position of the progress mark on the playback progress bar is adjusted to show the current playback position. The geographical location currently indicated by the progress mark on the playback progress bar matches the geographical location corresponding to the current playback content of the audio to be played. In other words, the user can intuitively see the geographical location corresponding to the content of the currently heard audio according to the geographical location indicated by the progress mark. Figure 4 The diamond block in the figure is an implementation method of the progress mark. In actual application, a specific color, specific shape, specific size or specific brightness can be used to distinguish the progress mark from the surrounding symbols representing the playback progress bar. In this way, when playing audio, the user can intuitively see on the display interface which location's ambient sound is currently being played. When there is only one target geographic location, the roads within a specific range around the target geographic location can be used to form the entire progress bar of the audio to be played. Among them, there can be multiple ways to play audio, such as single play, loop play, etc.

[0051] The audio playback method provided in this embodiment not only realizes the generation of audio to be played using the ambient audio of a specific geographic location, but also can dynamically display the playback progress of the audio through the geographic location on the audio playback interface, thereby providing users with rich audio playback methods and improving user experience.

[0052] Among them, in some embodiments, after playing the audio to be played, the method also includes: when receiving an audio adjustment instruction triggered by the user based on a preset control, determining the target number of audio tracks according to the audio adjustment instruction; adjusting the number of audio tracks in the first ambient audio and the second ambient audio according to the target number of audio tracks, and updating the audio to be played according to the adjusted number of audio tracks.

[0053] In this embodiment, for the same geographical location or the same path, environmental sound can be collected and divided into multiple tracks. For example, the complete environmental sound can be divided into multiple types of tracks such as human voice track, bird sound track, wind sound track, and wave sound track according to the different subjects of the sound, and different types of sounds in the collected environmental sound are separated separately, each constituting a separate track. These track data are stored in the electronic device, and the user can trigger the audio adjustment instruction as needed. When the electronic device detects the audio adjustment instruction triggered based on the preset control (or the audio adjustment instruction is triggered by the volume key of the electronic device), the number of tracks indicated by the audio adjustment instruction is determined. For example, if the number of tracks indicated by the audio adjustment instruction is 1, only the wind sound track can be played. If the number of tracks indicated by the audio adjustment instruction is 2, the wind sound track and the bird sound track can be played simultaneously. Or, in some embodiments, in addition to the environmental audio collected from the environment, some music that can reflect the characteristics of the environment can also be set as one of the tracks, such as piano performances, violin performances, etc. It should be noted that the number of audio tracks here refers to the number of audio tracks that are played simultaneously at the same time, rather than the number of audio tracks that are played successively on the timeline.

[0054] Alternatively, in another embodiment, a track selection interface may be displayed, and the user may select one or more tracks for overlay playback as needed.

[0055] Among them, in some embodiments, after determining the target number of audio tracks according to the audio adjustment instruction, the method also includes: adjusting the display mode of the playback progress bar according to the target number of audio tracks.

[0056] Please refer to Figure 4 As shown in the figure, when the user adjusts the number of tracks, the color or density of the dots on the progress bar can be used to show the quietness or noise of the environment at the location. For example, when the number of tracks is small, the ambient sound played is relatively quiet, and the density of the dots displayed on the interface is small. When the number of tracks increases, the ambient sound played is relatively noisy, and the density of the dots displayed on the interface is large.

[0057] It should be noted that the above-mentioned visualization method of the playback progress bar and progress mark is only an example to facilitate readers to understand the present solution, and does not constitute a limitation of the present invention. In actual applications, the playback progress bar and progress mark can also be displayed in other visualization forms.

[0058] The method described in the above embodiments is further described in detail below with examples.

[0059] See also Figure 5 , Figure 5 A second flow chart of the audio playback method provided in an embodiment of the present invention.

[0060] The method comprises:

[0061] In 201 , a geographic area interface is displayed on a display device, wherein the geographic area interface includes at least one geographic area.

[0062] In 202, in response to a first operation performed on the geographic area interface, the geographic area corresponding to the first operation is used as a target geographic area, and the target geographic area and at least one geographic location included in the target geographic area are displayed.

[0063] In 203, in response to a second operation acting on the at least one geographical location, the geographical location corresponding to the second operation is determined as a target geographical location.

[0064] In an embodiment of the present application, a city-themed music experience application is provided. The application provides multiple geographical areas. After the user starts the application, the geographical area interface is first displayed. The geographical area interface includes multiple preset geographical areas for the user to select. When the user triggers a first operation based on the geographical area interface, the geographical area selected by the user is determined based on the first operation, and is used as the target geographical area, and the audio playback interface corresponding to the target geographical area is entered.

[0065] Among them, in some embodiments, after the user clicks on a certain geographical location, the name and introduction of the geographical location can also be displayed on the interface. When the user zooms in on the map, the terrain environment near the geographical location is displayed on the interface. In this way, when the user plays the white noise composed of these environmental sounds, he can also understand the characteristics of the city with the help of music, allowing the user to have a more dimensional experience. In addition, since multiple optional geographical areas are provided, users can actively select the music of a certain place to learn about, and the display of the place can also be more specific.

[0066] In 204, a plurality of first ambient audios corresponding to at least one target geographic location are obtained from a database, wherein, when there are multiple target geographic locations, path information between any two of the multiple target geographic locations is obtained and at least one second ambient audio corresponding to the path information is obtained.

[0067] In 205, the audio to be played is generated according to the multiple first ambient audios and the at least one second ambient audio.

[0068] In 206 , a target area matching the at least one target geographic location is determined from the target geographic areas and the target area is displayed.

[0069] After the user determines the target geographic location, the electronic device obtains the audio data corresponding to the target geographic area from a preset database, wherein, for each geographic area, multiple geographic locations are pre-set for the user to select, such as some specific places: parks, roads, buildings, etc., and the ambient sounds of these places are collected and stored as audio data corresponding to the target geographic area.

[0070] In one embodiment, the ambient audio includes a first ambient audio at a geographical location and a second ambient audio on a path between every two geographical locations. The first ambient audio is stored in a one-to-one correspondence with the corresponding geographical location, and the second ambient audio is stored in a one-to-one correspondence with the path.

[0071] After determining at least one target geographic location, if there is only one target geographic location, the electronic device obtains a first ambient audio corresponding to the target geographic location from a database and uses the first ambient audio as the audio to be played.

[0072] If there are multiple target geographic locations, obtain path information between any two of the multiple target geographic locations, then obtain at least one second ambient audio corresponding to the path information from a database, and splice the first ambient audio and the second ambient audio into the audio to be played.

[0073] In 207, the audio to be played is played, and based on the preset elements in the target area that match the target geographical location, the playing progress of the audio to be played is dynamically displayed.

[0074] Among them, the preset element may be environment information or path information.

[0075] For example, in one embodiment, based on the preset elements in the target area that match the target geographic location, the playback progress of the audio to be played is dynamically displayed, including: obtaining the environmental information and path information corresponding to the target geographic location; generating a playback progress bar according to the position of the environmental information and the path information in the target area; dynamically adjusting the position of the progress mark on the playback progress bar according to the playback progress of the audio to be played, wherein the geographic location currently indicated by the progress mark on the playback progress bar matches the geographic location corresponding to the current playback content of the audio to be played. For the specific playback progress display method, please refer to the above embodiment, which will not be repeated here.

[0076] From the above, it can be seen that the audio playback method proposed in the embodiment of the present invention not only realizes the generation of audio to be played using the ambient audio of a specific geographical location, but also can dynamically display the playback progress of the audio through the geographical location on the playback interface of the audio, thereby providing users with a variety of audio playback methods. For example, when the user plays the audio while walking on a city street, the immersion can be made more real, thereby improving the user experience.

[0077] In one embodiment, an audio playback device is also provided. Figure 6 , Figure 6 The structure diagram of the audio playback device 300 provided in the embodiment of the present application is as follows: The audio playback device 300 is applied to an electronic device, and the audio playback device 300 includes a position determination module 301, an audio acquisition module 302, and an audio playback module 303, as follows:

[0078] A location determination module 301, configured to determine at least one target geographic location;

[0079] An audio acquisition module 302 is used to acquire the ambient audio of the at least one target geographic location and generate audio to be played according to the ambient audio;

[0080] The audio playing module 303 is used to play the audio to be played.

[0081] In some embodiments, the location determination module 301 is further configured to:

[0082] Displaying a geographic area interface on a display device, the geographic area interface including at least one geographic area;

[0083] In response to a first operation performed on the geographic area interface, taking the geographic area corresponding to the first operation as a target geographic area, and displaying the target geographic area and at least one geographic location included in the target geographic area;

[0084] In response to a second operation acting on the at least one geographic location, the geographic location corresponding to the second operation is determined as a target geographic location.

[0085] In some embodiments, the audio playback device further includes:

[0086] A progress display module, configured to determine a target area matching the at least one target geographical location and display the target area on a display device;

[0087] After playing the audio to be played, the method further includes:

[0088] Based on the preset elements in the target area that match the target geographical location, the playing progress of the audio to be played is dynamically displayed.

[0089] In some embodiments, the audio acquisition module 302 is further used to: when there are multiple target geographic locations, obtain path information between any two of the multiple target geographic locations;

[0090] Acquire a plurality of first ambient audios corresponding to the plurality of target geographic locations, and acquire at least one second ambient audio corresponding to the path information;

[0091] The audio to be played is generated according to the multiple first ambient audios and the at least one second ambient audio.

[0092] In some embodiments, the audio acquisition module 302 is further used to: determine the order between the multiple target geographical locations;

[0093] Determining an arrangement order between the multiple first ambient audios and the at least one second ambient audio according to a sequence between the multiple target geographical locations and the path information;

[0094] According to the arrangement order, the multiple first ambient audios and the at least one second ambient audio are synthesized into a video to be played.

[0095] In some embodiments, the preset elements include environmental information and path information; the audio playback module 303 is further used to: obtain the environmental information and path information corresponding to the target geographical location;

[0096] generating a playback progress bar according to the environmental information and the position of the path information in the target area;

[0097] According to the playing progress of the audio to be played, the position of the progress mark on the playing progress bar is dynamically adjusted, wherein the geographical location currently indicated by the progress mark on the playing progress bar matches the geographical location corresponding to the current playing content of the audio to be played.

[0098] In some embodiments, the audio playback module 303 is further used to: when receiving an audio adjustment instruction triggered by a user based on a preset control, determine the target number of audio tracks according to the audio adjustment instruction;

[0099] The number of audio tracks in the first ambient audio and the second ambient audio is adjusted according to the target number of audio tracks, and the audio to be played is updated according to the adjusted number of audio tracks.

[0100] In some embodiments, the audio playback module 303 is further used to: adjust the display mode of the playback progress bar according to the target number of audio tracks.

[0101] It should be noted that the audio playback device provided in the embodiment of the present application belongs to the same concept as the audio playback method in the above embodiment. Any method provided in the audio playback method embodiment can be implemented through the audio playback device. The specific implementation process is detailed in the audio playback method embodiment, which will not be repeated here.

[0102] As can be seen from the above, the audio playback device proposed in the embodiment of the present application includes a position determination module 301, an audio acquisition module 302 and an audio playback module 303. The position determination module 301 determines a target geographical area and at least one target geographical location in the target geographical area. The audio acquisition module 302 acquires the ambient audio of the at least one target geographical location, generates audio to be played based on the ambient audio, and the audio playback module 303 plays the audio to be played. Through the solution of the present application, the audio to be played is generated using the ambient audio of a specific geographical location, thereby providing users with a rich audio playback method and improving the user experience.

[0103] The present application also provides an electronic device. The electronic device may be a smart phone, a tablet computer, or other device. Figure 7 , Figure 7 The first structural diagram of the electronic device provided in the embodiment of the present application is as follows: The electronic device 400 includes a processor 401 and a memory 402. The processor 401 is electrically connected to the memory 402.

[0104] The processor 401 is the control center of the electronic device 400. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or calling computer programs stored in the memory 402, and calling data stored in the memory 402, thereby monitoring the electronic device as a whole.

[0105] The memory 402 may be used to store computer programs and data. The computer programs stored in the memory 402 include instructions that can be executed in the processor. The computer programs may constitute various functional modules. The processor 401 executes various functional applications and data processing by calling the computer programs stored in the memory 402.

[0106] In this embodiment, the processor 401 in the electronic device 400 loads instructions corresponding to the processes of one or more computer programs into the memory 402 according to the following steps, and the processor 401 runs the computer programs stored in the memory 402 to implement various functions:

[0107] identifying at least one target geographic location;

[0108] Acquire the ambient audio of the at least one target geographic location, and generate audio to be played according to the ambient audio;

[0109] Play the audio to be played.

[0110] In some embodiments, see Figure 8 , Figure 8 A second structural diagram of an electronic device provided in an embodiment of the present application. The electronic device 400 further includes: a radio frequency circuit 403, a display screen 404, a control circuit 405, an input unit 406, an audio circuit 407, a sensor 408, and a power supply 409. The processor 401 is electrically connected to the radio frequency circuit 403, the display screen 404, the control circuit 405, the input unit 406, the audio circuit 407, the sensor 408, and the power supply 409, respectively.

[0111] The radio frequency circuit 403 is used to send and receive radio frequency signals to communicate with network devices or other electronic devices through wireless communication.

[0112] The display screen 404 may be used to display information input by a user or information provided to a user and various graphical user interfaces of the electronic device. These graphical user interfaces may be composed of images, texts, icons, videos and any combination thereof.

[0113] The control circuit 405 is electrically connected to the display screen 404 and is used to control the display screen 404 to display information.

[0114] The input unit 406 can be used to receive input numbers, character information or user feature information (such as fingerprints), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control. The input unit 406 can include a fingerprint recognition module.

[0115] The audio circuit 407 can provide an audio interface between the user and the electronic device through a speaker and a microphone. The audio circuit 407 includes a microphone. The microphone is electrically connected to the processor 401. The microphone is used to receive voice information input by the user.

[0116] The sensor 408 is used to collect external environment information. The sensor 408 may include one or more sensors such as an environment brightness sensor, an acceleration sensor, and a gyroscope.

[0117] The power supply 409 is used to supply power to various components of the electronic device 400. In some embodiments, the power supply 409 may be logically connected to the processor 401 through a power management system, so that the power management system can manage charging, discharging, power consumption, and other functions.

[0118] Although not shown in the figure, the electronic device 400 may also include a camera, a Bluetooth module, etc., which will not be described in detail here.

[0119] In this embodiment, the processor 401 in the electronic device 400 loads instructions corresponding to the processes of one or more computer programs into the memory 402 according to the following steps, and the processor 401 runs the computer programs stored in the memory 402 to implement various functions:

[0120] identifying at least one target geographic location;

[0121] Acquire the ambient audio of the at least one target geographic location, and generate audio to be played according to the ambient audio;

[0122] Play the audio to be played.

[0123] From the above, it can be seen that an embodiment of the present application provides an electronic device, which determines at least one target geographic location, obtains ambient audio of the at least one target geographic location, generates audio to be played based on the ambient audio, and plays the audio to be played. Through the scheme of the present application, it is possible to generate audio to be played using ambient audio of a specific geographic location, provide users with a variety of audio playback methods, and enhance user experience.

[0124] An embodiment of the present application further provides a storage medium, wherein a computer program is stored in the storage medium. When the computer program is executed on a computer, the computer executes the audio playback method described in any of the above embodiments.

[0125] It should be noted that, a person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the storage medium can include but is not limited to: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.

[0126] In addition, the terms "first", "second", and "third" in this application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or modules is not limited to the listed steps or modules, but some embodiments also include steps or modules that are not listed, or some embodiments also include other steps or modules inherent to these processes, methods, products, or devices.

[0127] The above is a detailed introduction to the audio playback method, device, storage medium and electronic device provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core ideas of the present application; at the same time, for those skilled in the art, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. An audio playback method, characterized in that: The method comprises: Displaying a geographic area interface on a display device, wherein the geographic area interface includes at least one geographic area; In response to a first operation performed on the geographic area interface, taking the geographic area corresponding to the first operation as a target geographic area, and displaying the target geographic area and at least one geographic location included in the target geographic area; In response to a second operation acting on the at least one geographic location, determining the geographic location corresponding to the second operation as a target geographic location, where there are multiple target geographic locations; Obtaining path information between any two target geographic locations among the plurality of target geographic locations, obtaining a plurality of first ambient audio signals corresponding to the plurality of target geographic locations, and obtaining at least one second ambient audio signal corresponding to the path information, determining a sequence between the plurality of target geographic locations, determining an arrangement order between the plurality of first ambient audio signals and the at least one second ambient audio signal based on the sequence between the plurality of target geographic locations and the path information, and synthesizing the plurality of first ambient audio signals and the at least one second ambient audio signal into audio to be played based on the arrangement order; Play the audio to be played.

2. The audio playback method according to claim 1, wherein: After determining the geographical location corresponding to the second operation as the target geographical location, the method further includes: determining a target area matching the plurality of target geographic locations and displaying the target area on a display device; The playing of the audio to be played further includes: Based on the preset elements in the target area that match the target geographical location, the playing progress of the audio to be played is dynamically displayed.

3. The audio playback method according to claim 2, wherein: The preset elements include environmental information and path information; and the dynamically displaying the playback progress of the audio to be played based on the preset elements in the target area that match the target geographic location includes: Obtaining environmental information and path information corresponding to the target geographic location; generating a playback progress bar according to the environmental information and the position of the path information in the target area; According to the playback progress of the audio to be played, the position of the progress mark on the playback progress bar is dynamically adjusted, wherein the geographical location currently indicated by the progress mark on the playback progress bar matches the geographical location corresponding to the current playback content of the audio to be played.

4. The audio playback method according to claim 3, wherein: Also includes: When receiving an audio adjustment instruction triggered by a user based on a preset control, determining the target number of audio tracks according to the audio adjustment instruction; The number of audio tracks in the first ambient audio and the second ambient audio is adjusted according to the target number of audio tracks, and the audio to be played is updated according to the adjusted number of audio tracks.

5. The audio playback method according to claim 4, wherein: After determining the target number of audio tracks according to the audio adjustment instruction, the method further includes: The display mode of the playback progress bar is adjusted according to the target number of audio tracks.

6. An audio playback device, characterized in that: include: A location determination module is configured to: display a geographic area interface on a display device, wherein the geographic area interface includes at least one geographic area; In response to a first operation performed on the geographic area interface, taking the geographic area corresponding to the first operation as a target geographic area, and displaying the target geographic area and at least one geographic location included in the target geographic area; In response to a second operation acting on the at least one geographic location, determining the geographic location corresponding to the second operation as a target geographic location, where there are multiple target geographic locations; an audio acquisition module, configured to: acquire path information between any two of the plurality of target geographic locations, acquire a plurality of first ambient audio signals corresponding to the plurality of target geographic locations, and acquire at least one second ambient audio signal corresponding to the path information; determine a sequence between the plurality of target geographic locations; determine an arrangement order between the plurality of first ambient audio signals and the at least one second ambient audio signal based on the sequence between the plurality of target geographic locations and the path information; and synthesize the plurality of first ambient audio signals and the at least one second ambient audio signal into audio to be played based on the arrangement order; The audio playing module is used to play the audio to be played.

7. A storage medium having a computer program stored thereon, characterized in that: When the computer program is run on a computer, the computer is enabled to execute the audio playing method according to any one of claims 1 to 5.

8. An electronic device comprising a processor and a memory, wherein the memory stores a computer program, wherein: The processor is configured to execute the audio playback method according to any one of claims 1 to 5 by calling the computer program.

Citation Information

Patent Citations

  • Self-adaptive audio frequency content generation

    CN104240711A

  • Method and device for playing video and displaying map, and data processing method and system

    CN106534734A

  • Audio playing equipment and use and data updating method thereof

    CN110413833A