CN111831249A - Audio playing method and device, storage medium and electronic equipment - Google Patents

Audio playing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN111831249A
CN111831249A CN202010647323.5A CN202010647323A CN111831249A CN 111831249 A CN111831249 A CN 111831249A CN 202010647323 A CN202010647323 A CN 202010647323A CN 111831249 A CN111831249 A CN 111831249A
Authority
CN
China
Prior art keywords
audio
target
played
target geographic
playing
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
Application number
CN202010647323.5A
Other languages
Chinese (zh)
Inventor
李鸿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010647323.5A priority Critical patent/CN111831249A/en
Publication of CN111831249A publication Critical patent/CN111831249A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/16Sound input; Sound output
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/60Information retrieval; Database structures therefor; File system structures therefor of audio data
    • G06F16/68Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/686Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, title or artist information, time, location or usage information, user ratings

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Library & Information Science (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses an audio playing method, an audio playing device, a storage medium and electronic equipment, wherein at least one target geographic position is determined; acquiring an environmental audio corresponding to the at least one target geographic position, and generating an audio to be played according to the environmental audio; and playing the audio to be played, and providing rich audio playing modes for users and improving user experience through the scheme.

Description

Audio playing method and device, storage medium and electronic equipment
Technical Field
The present application relates to the field of electronic device technologies, and in particular, to an audio playing method and apparatus, a storage medium, and an electronic device.
Background
With the development of electronic devices, the functions of the electronic devices are more diversified. For example, some electronic devices provide white noise software that helps users focus their attention by playing certain audio. However, these software generally only have an audio playing function, and the audio playing mode is relatively single.
Disclosure of Invention
The embodiment of the application provides an audio playing method, an audio playing device, a storage medium and electronic equipment, which can realize a scheme of playing audio in combination with a geographic position and enrich audio playing modes.
In a first aspect, an embodiment of the present application provides an audio playing method, including:
determining at least one target geographic location;
acquiring an environmental audio corresponding to the at least one target geographic position, and generating an audio to be played according to the environmental audio;
and playing the audio to be played.
In a second aspect, an embodiment of the present application further provides an audio playing apparatus, including:
a location determination module for determining at least one target geographic location;
an audio acquisition module, configured to acquire an environmental audio of the at least one target geographic location, and generate an audio to be played according to the environmental audio
And the audio playing module is used for playing the audio to be played.
In a third aspect, an embodiment of the present application further provides a storage medium, on which a computer program is stored, and when the computer program runs on a computer, the computer is caused to execute an audio playing method as provided in any embodiment of the present application.
In a fourth aspect, an embodiment of the present application further provides an electronic device, which includes a processor and a memory, where the memory has a computer program, and the processor is configured to execute the audio playing method provided in any embodiment of the present application by calling the computer program.
According to the technical scheme, the at least one target geographic position is determined, the environmental audio of the at least one target geographic position is obtained, the audio to be played is generated according to the environmental audio, the audio to be played is played, the audio to be played is generated by using the environmental audio of the specific geographic position, rich audio playing modes are provided for users, and user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a first audio playing method according to an embodiment of the present disclosure.
Fig. 2 is a schematic view of an audio playing interface of an audio playing method according to an embodiment of the present disclosure.
Fig. 3 is a schematic view of another audio playing interface of the audio playing method according to the embodiment of the present application.
Fig. 4 is a schematic view of another audio playing interface of the audio playing method according to the embodiment of the present application.
Fig. 5 is a schematic flowchart of a second audio playing method according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of an audio playing device according to an embodiment of the present application.
Fig. 7 is a schematic structural diagram of a first electronic device according to an embodiment of the present application.
Fig. 8 is a schematic structural diagram of a second electronic device according to an embodiment of the present application.
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. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without inventive step, are within the scope of the present application.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
An execution main body of the audio playing method may be the audio playing device provided in the embodiment of the present application, or an electronic device integrated with the audio playing device, where the audio playing device may be implemented in a hardware or software manner. The electronic device may be a smart phone, a tablet computer, a palm computer, a notebook computer, or a desktop computer.
Referring to fig. 1, fig. 1 is a first flowchart illustrating an audio playing method according to an embodiment of the present disclosure. The specific process of the audio playing method provided by the embodiment of the application can be as follows:
at 101, at least one target geographic location is determined.
In an embodiment of the present application, for example, a music experience application program with a city as a theme is provided, and the application program provides a plurality of geographic areas, wherein the range of one geographic area on a map can be set as required. For example, in some embodiments, a city may be considered a geographic region, such as Beijing, Shanghai, Tokyo, New York, and so forth.
After the user starts the application program, a geographic area may be selected from a plurality of geographic areas as a target geographic area, and after the target geographic area selected by the user is determined, the user enters an interface corresponding to the target geographic area, where a background image of the audio playing interface may be a map of the target geographic area, and the map may be represented in an abstract manner or in a simplified manner, for example, please refer to fig. 2 and 3, and fig. 2 and 3 are audio playing interface schematic diagrams of an audio playing method provided in an embodiment of the present application. If the target geographic area is a map of a city, the lines connected with the main roads of the city can be used for simplifying and representing the city to serve as a background image for audio playing. Alternatively, in another embodiment, the map of the city may also be abstracted with the contour lines of the city.
Wherein, in some embodiments, for different geographic areas, different colors and/or styles of map fits may be used to present the characteristics of the geographic area.
In one embodiment, determining at least one target geographic location comprises: displaying a geographical area interface on a display device, the geographical area interface comprising at least one geographical area; responding to a first operation acting on the geographic area interface, taking a geographic area corresponding to the first operation as a target geographic area, and displaying the target geographic area and at least one geographic position contained in the target geographic area; and responding to a second operation acting on the at least one geographic position, and determining the geographic position corresponding to the second operation as a target geographic position.
Referring to fig. 2, fig. 2 is a schematic view of an audio playing interface of an audio playing method according to an embodiment of the present application. After the user starts the application program, a geographical area interface is displayed on a display screen of the electronic device, the geographical area interface includes a plurality of preset geographical areas for the user to select, after 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, the geographical area is determined as a target geographical area, and an audio playing interface corresponding to the target geographical area is entered, as shown in fig. 2, the target geographical area includes 3 selectable geographical positions: A. b, C are provided. After 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 may determine the target geographic location to be selected through a single-click operation or a long-press operation, and the like, wherein one or more target geographic locations may be selected according to the selection of the user, and certainly, a plurality of selectable geographic locations may be available. Assuming that the user selects the geographic locations a and C, the geographic locations a and C may be determined to be target geographic locations through a second operation.
In 102, an environmental audio corresponding to the at least one target geographic location is obtained, and an audio to be played is generated according to the environmental audio.
In 103, the audio to be played is played.
After the user determines the target geographic position, the electronic device obtains an audio database corresponding to the target geographic area from a preset database, and determines an environmental audio matched with at least one target geographic position selected by the user from the audio database.
Wherein, for each geographic area, a plurality of geographic positions which can be selected by the user are preset, such as some specific places: parks, roads, buildings, etc., collect environmental sounds of the sites, and store the environmental sounds as audio data corresponding to the target geographic area. In an embodiment, the ambient audio includes first ambient audio at a geographic location and second ambient audio on a path between each two geographic locations. And storing the first environment audio and the corresponding geographic position in a one-to-one correspondence manner, and storing the second environment audio and the path in a one-to-one correspondence manner.
In an embodiment, "acquiring the environmental audio of the at least one target geographic location, and generating the audio to be played according to the environmental audio" includes: when a plurality of target geographic positions exist, acquiring path information between any two target geographic positions in the plurality of target geographic positions; acquiring a plurality of first environment audios corresponding to a plurality of target geographic positions, and acquiring at least one second environment audio corresponding to the path information; and generating the audio to be played according to the plurality of first environment audios and the at least one second environment audio.
In this embodiment, a target geographic location selected by the user is determined, and when the user selects a plurality of target geographic locations, path information is generated according to the plurality of target geographic locations. For example, if the user selects the geographic locations a and C, the path information between the two locations a and C that are stored in advance is obtained, where one or more paths may exist between a and C, then the first environmental audio corresponding to the location a is obtained, the first environmental audio of the location B is obtained, the second environmental audio corresponding to the path between a and C is obtained, and the plurality of first environmental audios and the plurality of second environmental audios are combined into the audio to be played in sequence, or the plurality of first environmental audios and the plurality of second environmental audios are arranged in sequence to serve as the audio to be played.
For example, in an embodiment, "generating the audio to be played according to the plurality of first environmental audios and the at least one second environmental audio" includes: determining a sequence between the plurality of target geographic locations; determining the arrangement sequence between the plurality of first environmental audios and the at least one second environmental audio according to the sequence between the plurality of target geographic positions and the path information; and synthesizing the plurality of first environment audios and the at least one second environment audio into a video to be played according to the arrangement sequence.
In this embodiment, the sequence between the plurality of target geographic positions may be determined according to the sequence in which the user selects the plurality of target geographic positions. Alternatively, in another embodiment, the chronological order between the plurality of target geographic locations is randomly determined.
For example, when the user selects A, B, C three locations, a total of three path information is provided, the path D1 between a and B, the path D2 between B and C, and the path D3 between C and a may constitute the to-be-played audio by the corresponding ambient audio of A, B, C, D1, D2, and D3 in the order of a- > D1- > B- > D2- > C- > D3- > a. So that the subsequent audio to be played is played, the environment audio corresponding to each of A, B, C, D1, D2 and D3 is played in the order of A- > D1- > B- > D2- > C- > D3- > A.
In particular implementation, the present application is not limited by the execution sequence of the described steps, and some steps may be performed in other sequences or simultaneously without conflict.
Therefore, the audio playing method provided by the embodiment of the application determines at least one target geographic position, obtains the environmental audio of the at least one target geographic position, generates the audio to be played according to the environmental audio, and plays the audio to be played.
Wherein, in some embodiments, "determining at least one target geographic location" further comprises: and determining a target area matched with the at least one target geographic position and displaying the target area on a display device.
"the playing the audio to be played" further includes: and dynamically displaying the playing progress of the audio to be played based on a preset element matched with the target geographic position in the target area.
In this embodiment, after the user determines the target geographic location, the electronic device determines a target area matched with the at least one target geographic location from the target geographic area and displays the target area on the interface, please refer to fig. 3, and fig. 3 is another audio playing interface schematic diagram of the audio playing method provided in this embodiment of the application. Assuming that the user selects the geographic positions a and C, the whole block area, which includes the geographic positions a and C and the path between a and C, in the target geographic area is taken as the target area, the display interface is switched from the target geographic area to the target area by enlarging the display target area, and the display interface is switched from the content shown in fig. 2 to the content shown in fig. 3.
The preset element may be environment information or path information.
For example, in an embodiment, "dynamically displaying the playing progress of the audio to be played based on a preset element in the target area, which is matched with the target geographic location," includes: acquiring environment information and path information corresponding to the target geographic position; generating a playing progress bar according to the positions of the environment information and the path information in the target area; and dynamically adjusting the position of a progress mark on the playing progress bar according to the playing progress of the audio to be played, wherein the geographic position of the progress mark currently indicated on the playing progress bar is matched with the geographic position corresponding to the currently played content of the audio to be played.
Referring to fig. 4, fig. 4 is a schematic view of another audio playing interface of the audio playing method according to the embodiment of the present application. When there are multiple target geographic positions, after the interface is switched to the target area, the audio to be played is played, and at the same time, a path between a and C on the background map may be identified, and the playing progress of the audio may be represented by using the path and an environment around A, C, such as a road within a specific range around A, C. For example, a road within a specific range around A, C (such as the position identified by the triangular symbol in fig. 4) and a path connection between a and C (such as the position identified by the circular dot in fig. 4) constitute an entire playing progress bar of the audio to be played, and as the audio is played, the position of the progress mark on the playing progress bar is adjusted to represent the currently played position, and the geographic position currently indicated on the playing progress bar by the progress mark matches the geographic position corresponding to the currently played content of the audio to be played, that is, the user can visually see the geographic position corresponding to the content of the currently heard audio according to the geographic position indicated by the progress mark. The diamond in fig. 4 is an embodiment of the progress mark, and when it is actually used, a certain color, a certain shape, a certain size, or a certain brightness may be used to distinguish the progress mark from the surrounding symbol representing the playing progress bar. In this way, when the user plays the audio, the user can visually see the environment sound of which place is currently played on the display interface. When only one target geographic position exists, roads in a specific range around the target geographic position can be used to form the whole progress bar of the audio to be played. The audio may be played in a plurality of ways, such as single play, loop play, and the like.
The audio playing method provided by the embodiment not only realizes that the audio to be played is generated by using the environmental audio in the specific geographic position, but also can dynamically show the playing progress of the audio through the geographic position on the audio playing interface, thereby providing rich audio playing modes for users and improving the user experience.
Wherein, in some embodiments, after the audio to be played is played, the method further comprises: when an audio adjusting instruction triggered by a user based on a preset control is received, determining the number of target audio tracks according to the audio adjusting instruction; and adjusting the number of the audio tracks in the first environment audio and the second environment audio according to the number of the target audio tracks, and updating the audio to be played according to the adjusted number of the audio tracks.
In this embodiment, for the same geographical location or the same route, the ambient sound may be collected and divided into a plurality of tracks. For example, the complete environmental sound may be divided into multiple types of tracks, such as a human voice track, a bird song track, a wind voice track, a sea wave sound track, and the like, according to the difference of the sound-emitting subjects, that is, different types of sounds in the collected environmental sound are separately separated, and each of the different types of sounds forms a separate track. The audio track data are stored in the electronic equipment, a user can trigger an audio adjusting instruction according to needs, when the electronic equipment detects the audio adjusting instruction triggered based on the preset control (or the audio adjusting instruction is triggered through a volume key of the electronic equipment), the number of audio tracks indicated by the audio adjusting instruction is determined, for example, if the number of audio tracks indicated by the audio adjusting instruction is 1, only a wind sound audio track can be played, and if the number of audio tracks indicated by the audio adjusting instruction is 2, the wind sound audio track and a bird song audio track can be played simultaneously. Alternatively, in some embodiments, besides the environmental audio collected from the environment, some music that can embody the characteristics of the environment may be set as one of the music tracks, such as piano music, violin music, and the like. Note that the number of tracks here refers to the number of tracks played simultaneously in superposition at a uniform time, not the number of tracks played one after another on the time axis.
Alternatively, in another embodiment, a track selection interface may be presented and the user may select one or more tracks for overlay playback as desired.
Wherein, in some embodiments, after determining the number of target audio tracks according to the audio adjustment instruction, the method further comprises: and adjusting the display mode of the playing progress bar according to the number of the target audio tracks.
Referring to fig. 4, when the user adjusts the number of tracks, the quiet or noisy environment of the place can be represented by the color or density of dots on the progress bar. For example, when the number of tracks is small, the played environmental sound is relatively quiet, the density of dots displayed on the interface is small, and when the number of tracks is large, the played environmental sound is relatively noisy, and the density of dots displayed on the interface is large.
It should be noted that the above visualization manner of the playing progress bar and the progress mark is only an example for facilitating the reader to understand the present scheme, and does not limit the present invention, and in practical applications, the playing progress bar and the progress mark may also be displayed in other visualization forms.
The method according to the preceding embodiment is illustrated in further detail below by way of example.
Referring to fig. 5, fig. 5 is a second flow chart of the audio playing method according to the embodiment of the invention.
The method comprises the following steps:
in 201, a geographical area interface is displayed on a display device, the geographical area interface including at least one geographical area.
In 202, in response to a first operation performed on the geographic area interface, a geographic area corresponding to the first operation is taken as a target geographic area, and the target geographic area and at least one geographic location included in the target geographic area are displayed.
In 203, in response to a second operation acting on the at least one geographic location, a geographic location corresponding to the second operation is determined as a target geographic location.
In the embodiment of the application, a music experience application program with a city as a theme is provided, the application program provides a plurality of geographic areas, a user displays a geographic area interface after starting the application program, the geographic area interface comprises a plurality of preset geographic areas for the user to select, after a first operation triggered by the user based on the geographic area interface, the geographic area selected by the user is determined according to the first operation, the geographic area is used as a target geographic area, and an audio playing interface corresponding to the target geographic area is entered.
In some embodiments, after the user clicks a certain geographic location, the name and the brief description of the geographic location can be displayed on the interface, and when the user enlarges the map, the terrain environment near the geographic location is displayed on the interface. Through the mode, when the white noise formed by the environmental sounds is played, the user can know the characteristics of the city by matching with music, so that the user has more dimensionality experience. In addition, because multiple selectable geographical regions are provided, the user can actively select music in a certain place to be known, and the display of the place can be more specific.
At 204, a plurality of first environmental audios corresponding to at least one target geographic location are obtained from the database, wherein when there are a plurality of target geographic locations, path information between any two target geographic locations in the plurality of target geographic locations is obtained, and at least one second environmental audio corresponding to the path information is obtained.
In 205, the audio to be played is generated according to the plurality of first environmental audios and the at least one second environmental audio.
In 206, a target area matching the at least one target geographic location is determined from the target geographic areas and displayed.
After the user determines a target geographic location, the electronic device obtains audio data corresponding to the target geographic area from a preset database, wherein for each geographic area, a plurality of geographic locations which can be selected by the user are preset, such as some specific places: parks, roads, buildings, etc., collect environmental sounds of the sites, and store the environmental sounds as audio data corresponding to the target geographic area.
In an embodiment, the ambient audio includes first ambient audio at a geographic location and second ambient audio on a path between each two geographic locations. And storing the first environment audio and the corresponding geographic position in a one-to-one correspondence manner, and storing the second environment audio and the path in a one-to-one correspondence manner.
After the electronic equipment determines at least one target geographic position, if only one target geographic position exists, a first environment audio corresponding to one target geographic position is obtained from the database, and the first environment audio is used as an audio to be played.
If the number of the target geographic positions is multiple, path information between any two target geographic positions in the multiple target geographic positions is obtained, then at least one second environment audio corresponding to the path information is obtained from a database, and the first environment audio and the second environment audio are spliced into audio to be played.
In 207, the audio to be played is played, and the playing progress of the audio to be played is dynamically displayed based on the preset element matched with the target geographic position in the target area.
The preset element may be environment information or path information.
For example, in an embodiment, dynamically displaying the playing progress of the audio to be played based on a preset element in the target area, which is matched with the target geographic location, includes: acquiring environment information and path information corresponding to the target geographic position; generating a playing progress bar according to the positions of the environment information and the path information in the target area; and dynamically adjusting the position of a progress mark on the playing progress bar according to the playing progress of the audio to be played, wherein the geographic position of the progress mark currently indicated on the playing progress bar is matched with the geographic position corresponding to the currently played content of the audio to be played. For a specific display mode of the playing progress, please refer to the above embodiment, which is not described herein again.
Therefore, the audio playing method provided by the embodiment of the invention not only realizes the generation of the audio to be played by using the environmental audio at the specific geographic position, but also dynamically shows the playing progress of the audio through the geographic position on the audio playing interface, so as to provide rich audio playing modes for the user, for example, when the user walks on a city street to play the audio, the immersion can be more real, and the user experience can be improved.
In one embodiment, an audio playing device is also provided. Referring to fig. 6, fig. 6 is a schematic structural diagram of an audio playing device 300 according to an embodiment of the present disclosure. The audio playing apparatus 300 is applied to an electronic device, and the audio playing apparatus 300 includes a position determining module 301, an audio obtaining module 302, and an audio playing module 303, as follows:
a location determination module 301 for determining at least one target geographical location;
an audio obtaining module 302, configured to obtain an environmental audio of the at least one target geographic location, and generate an audio to be played according to the environmental audio;
and the audio playing module 303 is configured to play the audio to be played.
In some embodiments, the location determination module 301 is further configured to:
displaying a geographical area interface on a display device, the geographical area interface comprising at least one geographical area;
responding to a first operation acting on the geographic area interface, taking a geographic area corresponding to the first operation as a target geographic area, and displaying the target geographic area and at least one geographic position contained in the target geographic area;
and responding to a second operation acting on the at least one geographic position, and determining the geographic position corresponding to the second operation as a target geographic position.
In some embodiments, the audio playback apparatus further includes:
the progress display module is used for determining a target area matched with the at least one target geographic position and displaying the target area on a display device;
after the audio to be played is played, the method further includes:
and dynamically displaying the playing progress of the audio to be played based on a preset element matched with the target geographic position in the target area.
In some embodiments, the audio acquisition module 302 is further configured to: when a plurality of target geographic positions exist, acquiring path information between any two target geographic positions in the plurality of target geographic positions;
acquiring a plurality of first environment audios corresponding to a plurality of target geographic positions, and acquiring at least one second environment audio corresponding to the path information;
and generating the audio to be played according to the plurality of first environment audios and the at least one second environment audio.
In some embodiments, the audio acquisition module 302 is further configured to: determining a sequence between the plurality of target geographic locations;
determining the arrangement sequence between the plurality of first environmental audios and the at least one second environmental audio according to the sequence between the plurality of target geographic positions and the path information;
and synthesizing the plurality of first environment audios and the at least one second environment audio into a video to be played according to the arrangement sequence.
In some embodiments, the preset elements include environment information and path information; the audio playing module 303 is further configured to: acquiring environment information and path information corresponding to the target geographic position;
generating a playing progress bar according to the positions of the environment information and the path information in the target area;
and dynamically adjusting the position of a progress mark on the playing progress bar according to the playing progress of the audio to be played, wherein the geographic position of the progress mark currently indicated on the playing progress bar is matched with the geographic position corresponding to the currently played content of the audio to be played.
In some embodiments, the audio playing module 303 is further configured to: when an audio adjusting instruction triggered by a user based on a preset control is received, determining the number of target audio tracks according to the audio adjusting instruction;
and adjusting the number of the audio tracks in the first environment audio and the second environment audio according to the number of the target audio tracks, and updating the audio to be played according to the adjusted number of the audio tracks.
In some embodiments, the audio playing module 303 is further configured to: and adjusting the display mode of the playing progress bar according to the number of the target audio tracks.
It should be noted that the audio playing apparatus provided in the embodiment of the present application and the audio playing method in the foregoing embodiment belong to the same concept, and any method provided in the embodiment of the audio playing method can be implemented by the audio playing apparatus, and the specific implementation process of the method is detailed in the embodiment of the audio playing method, and is not described herein again.
As can be seen from the above, the audio playing apparatus provided in this embodiment of the application includes a position determining module 301, an audio obtaining module 302, and an audio playing module 303, where the position determining module 301 determines a target geographic area and at least one target geographic position in the target geographic area, the audio obtaining module 302 obtains an environmental audio of the at least one target geographic position, generates an audio to be played according to the environmental audio, and the audio playing module 303 plays the audio to be played.
The embodiment of the application also provides the electronic equipment. The electronic device can be a smart phone, a tablet computer and the like. Referring to fig. 7, fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. The electronic device 400 comprises a processor 401 and a memory 402. The processor 401 is electrically connected to the memory 402.
The processor 401 is a control center of the electronic device 400, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or calling a computer program stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device.
Memory 402 may be used to store computer programs and data. The memory 402 stores computer programs containing instructions executable in the processor. The computer program may constitute various functional modules. The processor 401 executes various functional applications and data processing by calling a computer program stored in the memory 402.
In this embodiment, the processor 401 in the electronic device 400 loads instructions corresponding to one or more processes of the computer program into the memory 402 according to the following steps, and the processor 401 runs the computer program stored in the memory 402, so as to implement various functions:
determining at least one target geographic location;
acquiring an environmental audio of the at least one target geographic position, and generating an audio to be played according to the environmental audio;
and playing the audio to be played.
In some embodiments, please refer to fig. 8, and fig. 8 is a second structural diagram of an electronic device according to an embodiment of the present disclosure. The electronic device 400 further comprises: radio frequency circuit 403, display 404, control circuit 405, input unit 406, audio circuit 407, sensor 408, and power supply 409. The processor 401 is electrically connected to the radio frequency circuit 403, the display 404, the control circuit 405, the input unit 406, the audio circuit 407, the sensor 408, and the power source 409.
The radio frequency circuit 403 is used for transceiving radio frequency signals to communicate with a network device or other electronic devices through wireless communication.
The display screen 404 may be used to display information entered by or provided to the user as well as various graphical user interfaces of the electronic device, which may be comprised of images, text, icons, video, and any combination thereof.
The control circuit 405 is electrically connected to the display screen 404, and is configured to control the display screen 404 to display information.
The input unit 406 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. The input unit 406 may include a fingerprint recognition module.
The audio circuit 407 may provide an audio interface between the user and the electronic device through a speaker, microphone. Wherein the audio circuit 407 comprises a microphone. The microphone is electrically connected to the processor 401. The microphone is used for receiving voice information input by a user.
The sensor 408 is used to collect external environmental information. The sensors 408 may include one or more of ambient light sensors, acceleration sensors, gyroscopes, etc.
The power supply 409 is used to power the various components of the electronic device 400. In some embodiments, the power source 409 may be logically connected to the processor 401 through a power management system, so that functions of managing charging, discharging, and power consumption are implemented through the power management system.
Although not shown in the drawings, the electronic device 400 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
In this embodiment, the processor 401 in the electronic device 400 loads instructions corresponding to one or more processes of the computer program into the memory 402 according to the following steps, and the processor 401 runs the computer program stored in the memory 402, so as to implement various functions:
determining at least one target geographic location;
acquiring an environmental audio of the at least one target geographic position, and generating an audio to be played according to the environmental audio;
and playing the audio to be played.
Therefore, the electronic device determines at least one target geographic position, obtains the environmental audio of the at least one target geographic position, generates the audio to be played according to the environmental audio, and plays the audio to be played.
An embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when the computer program runs on a computer, the computer executes the audio playing method according to any of the above embodiments.
It should be noted that, all or part of the steps in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, which may include, but is not limited to: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
Furthermore, the terms "first", "second", and "third", etc. in this application are used to distinguish different objects, and are not used to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or modules listed, but rather, some embodiments may include other steps or modules not listed or inherent to such process, method, article, or apparatus.
The audio playing method, the audio playing device, the storage medium and the electronic device provided by the embodiment of the application are described in detail above. The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. An audio playing method, the method comprising:
determining at least one target geographic location;
acquiring an environmental audio corresponding to the at least one target geographic position, and generating an audio to be played according to the environmental audio;
and playing the audio to be played.
2. The audio playback method of claim 1, wherein said determining at least one target geographic location comprises:
displaying a geographical area interface on a display device, the geographical area interface comprising at least one geographical area;
responding to a first operation acting on the geographic area interface, taking a geographic area corresponding to the first operation as a target geographic area, and displaying the target geographic area and at least one geographic position contained in the target geographic area;
and responding to a second operation acting on the at least one geographic position, and determining the geographic position corresponding to the second operation as a target geographic position.
3. The audio playback method of claim 1, wherein said determining at least one target geographic location further comprises:
determining a target area matched with the at least one target geographic position and displaying the target area on a display device;
the playing the audio to be played further comprises:
and dynamically displaying the playing progress of the audio to be played based on a preset element matched with the target geographic position in the target area.
4. The audio playing method according to claim 1, wherein the obtaining of the environmental audio of the at least one target geographic location and the generating of the audio to be played according to the environmental audio comprises:
when a plurality of target geographic positions exist, acquiring path information between any two target geographic positions in the plurality of target geographic positions;
acquiring a plurality of first environment audios corresponding to a plurality of target geographic positions, and acquiring at least one second environment audio corresponding to the path information;
and generating the audio to be played according to the plurality of first environment audios and the at least one second environment audio.
5. The audio playing method according to claim 4, wherein the generating the audio to be played according to the plurality of first environmental audios and the at least one second environmental audio comprises:
determining a sequence between the plurality of target geographic locations;
determining the arrangement sequence between the plurality of first environmental audios and the at least one second environmental audio according to the sequence between the plurality of target geographic positions and the path information;
and synthesizing the plurality of first environment audios and the at least one second environment audio into a video to be played according to the arrangement sequence.
6. The audio playback method as claimed in claim 4, wherein the preset elements include environment information and path information; the dynamically displaying the playing progress of the audio to be played based on the preset element matched with the target geographic position in the target area comprises:
acquiring environment information and path information corresponding to the target geographic position;
generating a playing progress bar according to the positions of the environment information and the path information in the target area;
and dynamically adjusting the position of a progress mark on the playing progress bar according to the playing progress of the audio to be played, wherein the geographic position of the progress mark currently indicated on the playing progress bar is matched with the geographic position corresponding to the currently played content of the audio to be played.
7. The audio playback method of claim 6, further comprising:
when an audio adjusting instruction triggered by a user based on a preset control is received, determining the number of target audio tracks according to the audio adjusting instruction;
and adjusting the number of the audio tracks in the first environment audio and the second environment audio according to the number of the target audio tracks, and updating the audio to be played according to the adjusted number of the audio tracks.
8. The audio playback method of claim 7, wherein after determining the number of target audio tracks according to the audio adjustment instruction, further comprising:
and adjusting the display mode of the playing progress bar according to the number of the target audio tracks.
9. An audio playback apparatus, comprising:
a location determination module for determining at least one target geographic location;
the audio acquisition module is used for acquiring the environmental audio of the at least one target geographic position and generating the audio to be played according to the environmental audio;
and the audio playing module is used for playing the audio to be played.
10. A storage medium having stored thereon a computer program, characterized in that, when the computer program runs on a computer, it causes the computer to execute the audio playback method according to any one of claims 1 to 8.
11. An electronic device comprising a processor and a memory, the memory storing a computer program, wherein the processor is configured to execute the audio playback method according to any one of claims 1 to 8 by calling the computer program.
CN202010647323.5A 2020-07-07 2020-07-07 Audio playing method and device, storage medium and electronic equipment Pending CN111831249A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010647323.5A CN111831249A (en) 2020-07-07 2020-07-07 Audio playing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010647323.5A CN111831249A (en) 2020-07-07 2020-07-07 Audio playing method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN111831249A true CN111831249A (en) 2020-10-27

Family

ID=72900443

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010647323.5A Pending CN111831249A (en) 2020-07-07 2020-07-07 Audio playing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN111831249A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112134966A (en) * 2020-11-26 2020-12-25 飞天诚信科技股份有限公司 Cloud sound box broadcast voice configuration method and system
CN114201136A (en) * 2021-10-26 2022-03-18 维沃移动通信有限公司 Audio playing method and device
CN114537271A (en) * 2022-02-09 2022-05-27 广州小鹏汽车科技有限公司 Control method, vehicle, and storage medium

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102568527A (en) * 2011-12-20 2012-07-11 广东步步高电子工业有限公司 Method and system for easily cutting audio files and applied mobile handheld device
CN104240711A (en) * 2013-06-18 2014-12-24 杜比实验室特许公司 Self-adaptive audio frequency content generation
CN104575548A (en) * 2013-10-17 2015-04-29 腾讯科技(深圳)有限公司 File playing positioning method and device as well as terminal
CN105430442A (en) * 2015-11-12 2016-03-23 广州视源电子科技股份有限公司 Method and system for setting audio language of multimedia equipment
CN106484358A (en) * 2016-09-28 2017-03-08 珠海格力电器股份有限公司 A kind of audio frequency playing method, device and terminal
CN106534734A (en) * 2015-09-11 2017-03-22 腾讯科技(深圳)有限公司 Method and device for playing video and displaying map, and data processing method and system
EP3147907A1 (en) * 2015-09-25 2017-03-29 Xiaomi Inc. Control method and apparatus for playing audio
WO2017107427A1 (en) * 2015-12-25 2017-06-29 百度在线网络技术(北京)有限公司 Terminal equipment control method, device, and equipment, and non-volatile computer storage medium
CN108495248A (en) * 2018-01-25 2018-09-04 广州蓝豹智能科技有限公司 Localization method, device, audio-frequence player device and storage medium
WO2018227637A1 (en) * 2017-06-16 2018-12-20 华为技术有限公司 Audio playing method and electronic device
CN109151566A (en) * 2018-09-30 2019-01-04 Oppo广东移动通信有限公司 Audio frequency playing method, device, electronic equipment and computer-readable medium
CN109274813A (en) * 2018-08-14 2019-01-25 Oppo广东移动通信有限公司 Optimization of rate method, apparatus, electronic equipment and storage medium
CN110413833A (en) * 2019-07-18 2019-11-05 乐播新瑞(北京)文化传媒有限公司 A kind of audio-frequence player device and its use and data-updating method

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102568527A (en) * 2011-12-20 2012-07-11 广东步步高电子工业有限公司 Method and system for easily cutting audio files and applied mobile handheld device
CN104240711A (en) * 2013-06-18 2014-12-24 杜比实验室特许公司 Self-adaptive audio frequency content generation
CN104575548A (en) * 2013-10-17 2015-04-29 腾讯科技(深圳)有限公司 File playing positioning method and device as well as terminal
CN106534734A (en) * 2015-09-11 2017-03-22 腾讯科技(深圳)有限公司 Method and device for playing video and displaying map, and data processing method and system
EP3147907A1 (en) * 2015-09-25 2017-03-29 Xiaomi Inc. Control method and apparatus for playing audio
CN105430442A (en) * 2015-11-12 2016-03-23 广州视源电子科技股份有限公司 Method and system for setting audio language of multimedia equipment
WO2017107427A1 (en) * 2015-12-25 2017-06-29 百度在线网络技术(北京)有限公司 Terminal equipment control method, device, and equipment, and non-volatile computer storage medium
CN106484358A (en) * 2016-09-28 2017-03-08 珠海格力电器股份有限公司 A kind of audio frequency playing method, device and terminal
WO2018227637A1 (en) * 2017-06-16 2018-12-20 华为技术有限公司 Audio playing method and electronic device
CN108495248A (en) * 2018-01-25 2018-09-04 广州蓝豹智能科技有限公司 Localization method, device, audio-frequence player device and storage medium
CN109274813A (en) * 2018-08-14 2019-01-25 Oppo广东移动通信有限公司 Optimization of rate method, apparatus, electronic equipment and storage medium
CN109151566A (en) * 2018-09-30 2019-01-04 Oppo广东移动通信有限公司 Audio frequency playing method, device, electronic equipment and computer-readable medium
CN110413833A (en) * 2019-07-18 2019-11-05 乐播新瑞(北京)文化传媒有限公司 A kind of audio-frequence player device and its use and data-updating method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112134966A (en) * 2020-11-26 2020-12-25 飞天诚信科技股份有限公司 Cloud sound box broadcast voice configuration method and system
CN114201136A (en) * 2021-10-26 2022-03-18 维沃移动通信有限公司 Audio playing method and device
CN114537271A (en) * 2022-02-09 2022-05-27 广州小鹏汽车科技有限公司 Control method, vehicle, and storage medium

Similar Documents

Publication Publication Date Title
CN109151593B (en) Anchor recommendation method, device and storage medium
CN111831249A (en) Audio playing method and device, storage medium and electronic equipment
CN111524501B (en) Voice playing method, device, computer equipment and computer readable storage medium
CN111899706A (en) Audio production method, device, equipment and storage medium
CN111031386B (en) Video dubbing method and device based on voice synthesis, computer equipment and medium
CN109448761B (en) Method and device for playing songs
CN111326132A (en) Audio processing method and device, storage medium and electronic equipment
CN109192218B (en) Method and apparatus for audio processing
US20230252964A1 (en) Method and apparatus for determining volume adjustment ratio information, device, and storage medium
CN110377200B (en) Shared data generation method and device and storage medium
CN113823250B (en) Audio playing method, device, terminal and storage medium
CN109616090B (en) Multi-track sequence generation method, device, equipment and storage medium
CN111933098A (en) Method and device for generating accompaniment music and computer readable storage medium
CN111081277B (en) Audio evaluation method, device, equipment and storage medium
CN113420177A (en) Audio data processing method and device, computer equipment and storage medium
KR100617719B1 (en) Apparatus and method for generating movement dependent sound in a mobile communication terminal equipment
CN109346044B (en) Audio processing method, device and storage medium
WO2022111260A1 (en) Music filtering method, apparatus, device, and medium
CN111428079B (en) Text content processing method, device, computer equipment and storage medium
WO2023061330A1 (en) Audio synthesis method and apparatus, and device and computer-readable storage medium
CN110717053A (en) Picture display method, device, terminal and storage medium based on songs
CN113204673A (en) Audio processing method, device, terminal and computer readable storage medium
CN113343022A (en) Song teaching method, device, terminal and storage medium
CN113160781B (en) Audio generation method, device, computer equipment and storage medium
CN108337367B (en) Musical instrument playing method and device based on mobile terminal

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