Movatterモバイル変換


[0]ホーム

URL:


CN114237731A - Webpage audio playing method and device and storage medium - Google Patents

Webpage audio playing method and device and storage medium
Download PDF

Info

Publication number
CN114237731A
CN114237731ACN202111294440.9ACN202111294440ACN114237731ACN 114237731 ACN114237731 ACN 114237731ACN 202111294440 ACN202111294440 ACN 202111294440ACN 114237731 ACN114237731 ACN 114237731A
Authority
CN
China
Prior art keywords
audio
control instruction
component
upstream
file
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
CN202111294440.9A
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.)
Guilin Changhai Development Co ltd
Original Assignee
Guilin Changhai Development Co 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 Guilin Changhai Development Co ltdfiledCriticalGuilin Changhai Development Co ltd
Priority to CN202111294440.9ApriorityCriticalpatent/CN114237731A/en
Publication of CN114237731ApublicationCriticalpatent/CN114237731A/en
Pendinglegal-statusCriticalCurrent

Links

Images

Classifications

Landscapes

Abstract

The invention provides a webpage audio playing method, a device and a storage medium, wherein the method comprises the following steps: the method comprises the steps of importing an Audio component and an Audio control instruction, initializing the Audio component to obtain an initialized Audio component, obtaining an Audio file through a web page, splitting the Audio file to obtain an uplink Audio file and a downlink Audio file, and controlling the initialized Audio component to analyze Audio playing of the uplink Audio file and/or the downlink Audio file according to the Audio control instruction to obtain an Audio playing result. The invention solves the problem that the audio can be played independently in the uplink and the downlink, meets the requirements of users and improves the practicability of the audio player.

Description

Webpage audio playing method and device and storage medium
Technical Field
The present invention relates to the field of audio playing technologies, and in particular, to a method and an apparatus for playing web page audio, and a storage medium.
Background
In a web front-end audio player application, a common player generally plays an audio file in uplink and downlink synchronously, but in some audios, specific requirements cannot be met. For example, when some audio files for talkback are played, uplink audio or downlink audio needs to be played independently, but a general web page player cannot meet such requirements.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method, an apparatus and a storage medium for playing web page audio, aiming at the defects of the prior art.
The technical scheme for solving the technical problems is as follows: a webpage audio playing method comprises the following steps:
importing an Audio component and an Audio control instruction, and initializing the Audio component to obtain an initialized Audio component;
acquiring an audio file through a web page, and splitting the audio file to obtain an uplink audio file and a downlink audio file;
and controlling the initialized Audio assembly to analyze Audio playing of the uplink Audio file and/or the downlink Audio file according to the Audio control instruction to obtain an Audio playing result.
Another technical solution of the present invention for solving the above technical problems is as follows: a web page audio playback apparatus, comprising:
the device comprises an assembly initialization module, a control module and a control module, wherein the assembly initialization module is used for importing an Audio assembly and an Audio control instruction and initializing the Audio assembly to obtain an initialized Audio assembly;
the audio splitting module is used for obtaining an audio file through a web page and splitting the audio file to obtain an uplink audio file and a downlink audio file;
and the Audio playing result obtaining module is used for controlling the initialized Audio assembly to carry out Audio playing analysis on the uplink Audio file and/or the downlink Audio file according to the Audio control instruction to obtain an Audio playing result.
Another technical solution of the present invention for solving the above technical problems is as follows: a web page audio playing device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, when executing the computer program, implementing the web page audio playing method as described above.
Another technical solution of the present invention for solving the above technical problems is as follows: a computer-readable storage medium, storing a computer program which, when executed by a processor, implements a web page audio playback method as described above.
The invention has the beneficial effects that: the initialized Audio component is obtained by initializing the Audio component, the uplink Audio file and the downlink Audio file are obtained by splitting the Audio file, the initialized Audio component is controlled to perform Audio playing analysis on the uplink Audio file and/or the downlink Audio file according to the Audio control instruction to obtain an Audio playing result, the problem that the Audio can be independently played in the uplink and the downlink is solved, the requirements of a user are met, and the practicability of the Audio player is improved.
Drawings
Fig. 1 is a schematic flowchart of a method for playing a webpage audio according to an embodiment of the present invention;
fig. 2 is a block diagram of a webpage audio playing apparatus according to an embodiment of the present invention.
Detailed Description
The principles and features of this invention are described below in conjunction with the following drawings, which are set forth by way of illustration only and are not intended to limit the scope of the invention.
Fig. 1 is a schematic flowchart of a method for playing web page audio according to an embodiment of the present invention.
As shown in fig. 1, a method for playing web page audio includes the following steps:
importing an Audio component and an Audio control instruction, and initializing the Audio component to obtain an initialized Audio component;
acquiring an audio file through a web page, and splitting the audio file to obtain an uplink audio file and a downlink audio file;
and controlling the initialized Audio assembly to analyze Audio playing of the uplink Audio file and/or the downlink Audio file according to the Audio control instruction to obtain an Audio playing result.
It should be understood that the Audio component may be an Audio player.
It should be understood that the Audio component is an Audio player loaded with a web page for subsequent Audio playback through an html web page display player interface.
Specifically, the initialization refers to display initialization of buttons for displaying an interface of an Audio play control (i.e., the Audio component), such as length, width, height, position, and the like, displaying a play time, pausing, playing, synchronizing, and the like.
It should be understood that obtaining the audio file through the web page means downloading the audio file by means of a file stream using an http connection of the web page, connecting to a specified audio file address.
It should be understood that the file (i.e., the audio file) is split up and down using existing conventional audio splitting techniques, splitting into two audio files, i.e., the up audio file and the down audio file.
In the above embodiment, the initialized Audio component is obtained by initializing the Audio component, the uplink Audio file and the downlink Audio file are obtained by splitting the Audio file, and the initialized Audio component is controlled to perform Audio playing analysis on the uplink Audio file and/or the downlink Audio file according to the Audio control instruction to obtain an Audio playing result, so that the problem that the Audio can be independently played in uplink and downlink is solved, the requirements of a user are met, and the practicability of the Audio player is improved.
Optionally, as an embodiment of the present invention, the process of controlling the initialized Audio component to perform Audio playing analysis on the uplink Audio file and/or the downlink Audio file according to the Audio control instruction to obtain an Audio playing result includes:
if the Audio control instruction is a first Audio control instruction, controlling the initialized Audio component to play the uplink Audio file and the downlink Audio file according to the first Audio control instruction to obtain a first Audio playing result, and taking the first Audio playing result as an Audio playing result;
if the Audio control instruction is a second Audio control instruction, controlling the initialized Audio component to play the uplink Audio file according to the second Audio control instruction to obtain a second Audio playing result, and taking the second Audio playing result as an Audio playing result;
and if the Audio control instruction is a third Audio control instruction, controlling the initialized Audio component to play the downlink Audio file according to the third Audio control instruction to obtain a third Audio playing result, and taking the third Audio playing result as an Audio playing result.
In the above embodiment, the Audio control instruction controls the initialized Audio component to perform Audio playing analysis on the uplink Audio file and/or the downlink Audio file to obtain an Audio playing result, so that uplink and downlink Audio can be played according to requirements, the problem that the Audio can be played independently in uplink and downlink is solved, the requirements of users are met, and the practicability of the Audio player is improved.
Optionally, as an embodiment of the present invention, the initialized Audio component includes an upstream Audio component and a downstream Audio component, and the process of controlling the initialized Audio component to play the upstream Audio file and the downstream Audio file according to the first Audio control instruction to obtain a first Audio playing result includes:
controlling the uplink Audio component to play the uplink Audio file according to the first Audio control instruction to obtain an uplink Audio playing result,
controlling the downlink Audio component to play the downlink Audio file according to the first Audio control instruction to obtain a downlink Audio playing result;
and taking the uplink audio playing result and the downlink audio playing result as a first audio playing result.
It should be understood that the initialized Audio component includes an upstream playing control and a downstream playing control, which are composed of a self-contained Audio player of a web page, that is, two Audio playing controls (that is, the upstream Audio component and the downstream Audio component) for playing corresponding Audio files (that is, the upstream Audio file and the downstream Audio file), and the Audio files (that is, the upstream Audio file and the downstream Audio file) can be dragged to a specified position for playing in a playing process.
Specifically, the initialized Audio component comprises two Audio controls carried by the web pages, one Audio control (i.e., the uplink Audio component) plays an uplink Audio (i.e., the uplink Audio file), one Audio control (i.e., the downlink Audio component) plays a downlink Audio (i.e., the downlink Audio file), the total duration of the Audio is respectively and synchronously displayed, the played duration is displayed, the Audio playing duration is displayed, the display duration is 0:00 and is less than 60 seconds, the display duration is 0:58 and is greater than one minute, the display duration is 01:30 seconds, the left side is minutes, and the right side is seconds, wherein the display duration is 0:00 and is less than 60 seconds, the display duration is 58 seconds.
In the above embodiment, the first Audio control instruction controls the uplink Audio component to play the uplink Audio file to obtain the uplink Audio playing result, the first Audio control instruction controls the downlink Audio component to play the downlink Audio file to obtain the downlink Audio playing result, and the uplink Audio playing result and the downlink Audio playing result are taken as the first Audio playing result, so that uplink and downlink Audio can be synchronized, the requirements of a user are met, and the practicability of the Audio player is improved.
Optionally, as an embodiment of the present invention, the step of controlling the initialized Audio component to play the uplink Audio file according to the second Audio control instruction to obtain a second Audio playing result includes:
and controlling the uplink Audio assembly to play the uplink Audio file according to the second Audio control instruction to obtain a second Audio playing result.
In the above embodiment, the uplink Audio component is controlled by the second Audio control instruction to play the uplink Audio file to obtain the second Audio playing result, so that the problem that the Audio can be played independently in the uplink and the downlink is solved, the requirements of users are met, and the practicability of the Audio player is improved.
Optionally, as an embodiment of the present invention, the step of controlling the initialized Audio component to play the downlink Audio file according to the third Audio control instruction to obtain a third Audio playing result includes:
and controlling the downlink Audio component to play the downlink Audio file according to the third Audio control instruction to obtain a third Audio playing result.
In the above embodiment, the downlink Audio component is controlled by the third Audio control instruction to play the downlink Audio file to obtain the third Audio playing result, so that the problem that the Audio can be played independently in the uplink and the downlink is solved, the requirements of users are met, and the practicability of the Audio player is improved.
Optionally, as another embodiment of the present invention, a client is opened at a web page end, an Audio player (i.e., the initialized Audio component) is loaded on the web page, the Audio file is downloaded from a server and split by using a web conventional http network request technology, and the two split Audio files (i.e., the upstream Audio file and the downstream Audio file) are played by the Audio player (i.e., the initialized Audio component).
The opening of the client at the web page end refers to the opening of the client by accessing items through a computer browser (a general browser such as google and dog search).
Loading an Audio player (i.e. the initialized Audio component) on a webpage, which means loading the Audio player carried by the webpage through an html webpage display player interface so as to perform subsequent Audio playing, wherein the Audio playing comprises upper Audio playing alone or lower Audio playing alone or upper and lower Audio playing simultaneously; loading the Audio player (i.e., the initialized Audio component) further comprises: the system comprises an upstream player and a downstream player (namely the upstream Audio component and the downstream Audio component), wherein each player (namely the upstream Audio component or the downstream Audio component) consists of a single Audio, each player (namely the upstream Audio component or the downstream Audio component) has play/pause, fast and slow play, and a play speed scale adjustment unit value is 0.25. The player (i.e., the upstream Audio component or the downstream Audio component) includes play, pause, acceleration, deceleration, synchronization, Audio duration display, and Audio waveform diagram display, where the Audio duration display uses a display duration of 0:00, is less than 60 seconds, such as 58 seconds to display 0:58, is greater than one minute, such as 90 seconds to display 01:30 seconds, the left side is minutes, and the right side is seconds.
The method comprises the steps of downloading an audio file from a server by using a web conventional http network request technology, wherein the conventional http network address configuration, parameter configuration, IP address configuration, downloading logic processing configuration and the like are included, the audio file is downloaded locally, the file (namely the audio file) is split up and down by using the conventional audio splitting technology, the audio file is split into an uplink audio file and a downlink audio file (namely the uplink audio file and the downlink audio file), and whether the uplink audio file and the downlink audio file exist simultaneously or not is judged after the audio file is split.
Optionally, as another embodiment of the present invention, the play control (i.e., the initialized Audio component) may perform synchronous or asynchronous selection (i.e., the first Audio control instruction, the second Audio control instruction, or the third Audio control instruction), and be controlled by the synchronization button, when asynchronous selection (i.e., the second Audio control instruction or the third Audio control instruction) is performed, each individual play control (i.e., the uplink Audio component or the downlink Audio component) is displayed, and each play control (i.e., the uplink Audio component or the downlink Audio component) displays a pause/play button for playing the decoded split uplink and downlink two audios (i.e., the uplink Audio file and the downlink Audio file), respectively. When synchronous playing (namely a first Audio control instruction) is selected, an upper Audio player and a lower Audio player (namely the uplink Audio component and the downlink Audio component) respectively play an upper Audio file and a lower Audio file (namely the uplink Audio file and the downlink Audio file) which are decoded and split, a single player (namely the uplink Audio component or the downlink Audio component) cannot be independently and respectively operated under a synchronous state (namely the first Audio control instruction), and only two players (namely the uplink Audio component and the downlink Audio component) can be synchronously and simultaneously operated, namely a progress bar is synchronously paused, synchronously played and synchronously dragged to a fixed position player.
Fig. 2 is a block diagram of a webpage audio playing apparatus according to an embodiment of the present invention.
Optionally, as another embodiment of the present invention, as shown in fig. 2, an audio playing apparatus for a web page includes:
the device comprises an assembly initialization module, a control module and a control module, wherein the assembly initialization module is used for importing an Audio assembly and an Audio control instruction and initializing the Audio assembly to obtain an initialized Audio assembly;
the audio splitting module is used for obtaining an audio file through a web page and splitting the audio file to obtain an uplink audio file and a downlink audio file;
and the Audio playing result obtaining module is used for controlling the initialized Audio assembly to carry out Audio playing analysis on the uplink Audio file and/or the downlink Audio file according to the Audio control instruction to obtain an Audio playing result.
Optionally, as an embodiment of the present invention, the audio playing result obtaining module is specifically configured to:
if the Audio control instruction is a first Audio control instruction, controlling the initialized Audio component to play the uplink Audio file and the downlink Audio file according to the first Audio control instruction to obtain a first Audio playing result, and taking the first Audio playing result as an Audio playing result;
if the Audio control instruction is a second Audio control instruction, controlling the initialized Audio component to play the uplink Audio file according to the second Audio control instruction to obtain a second Audio playing result, and taking the second Audio playing result as an Audio playing result;
and if the Audio control instruction is a third Audio control instruction, controlling the initialized Audio component to play the downlink Audio file according to the third Audio control instruction to obtain a third Audio playing result, and taking the third Audio playing result as an Audio playing result.
Optionally, as an embodiment of the present invention, the initialized Audio component includes an upstream Audio component and a downstream Audio component, and the Audio playing result obtaining module is further configured to:
controlling the uplink Audio component to play the uplink Audio file according to the first Audio control instruction to obtain an uplink Audio playing result,
controlling the downlink Audio component to play the downlink Audio file according to the first Audio control instruction to obtain a downlink Audio playing result;
and taking the uplink audio playing result and the downlink audio playing result as a first audio playing result.
Optionally, another embodiment of the present invention provides a web page audio playing apparatus, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the web page audio playing method as described above is implemented. The device may be a computer or the like.
Alternatively, another embodiment of the present invention provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the web page audio playing method as described above.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

Translated fromChinese
1.一种网页音频播放方法,其特征在于,包括如下步骤:1. a web page audio playback method, is characterized in that, comprises the steps:导入Audio组件和音频控制指令,并对所述Audio组件进行初始化,得到初始化后的Audio组件;Import Audio components and audio control instructions, and initialize the Audio components to obtain the initialized Audio components;通过web网页获得音频文件,并对所述音频文件进行拆分,得到上行音频文件和下行音频文件;Obtain an audio file through a web page, and split the audio file to obtain an upstream audio file and a downstream audio file;根据所述音频控制指令控制所述初始化后的Audio组件对所述上行音频文件和/或所述下行音频文件进行音频播放的分析,得到音频播放结果。According to the audio control instruction, the initialized Audio component is controlled to perform audio playback analysis on the upstream audio file and/or the downstream audio file to obtain an audio playback result.2.根据权利要求1所述的网页音频播放方法,其特征在于,所述根据所述音频控制指令控制所述初始化后的Audio组件对所述上行音频文件和/或所述下行音频文件进行音频播放的分析,得到音频播放结果的过程包括:2. The web page audio playback method according to claim 1, wherein the audio component after the initialization is controlled to perform audio on the upstream audio file and/or the downstream audio file according to the audio control instruction. Analysis of playback, the process of obtaining audio playback results includes:若所述音频控制指令为第一音频控制指令时,则根据所述第一音频控制指令控制所述初始化后的Audio组件播放所述上行音频文件和所述下行音频文件,得到第一音频播放结果,并将所述第一音频播放结果作为音频播放结果;If the audio control instruction is the first audio control instruction, control the initialized Audio component to play the upstream audio file and the downstream audio file according to the first audio control instruction, and obtain a first audio playback result , and the first audio playback result is used as the audio playback result;若所述音频控制指令为第二音频控制指令时,则根据所述第二音频控制指令控制所述初始化后的Audio组件播放所述上行音频文件,得到第二音频播放结果,并将所述第二音频播放结果作为音频播放结果;If the audio control instruction is a second audio control instruction, control the initialized Audio component to play the upstream audio file according to the second audio control instruction, obtain a second audio playback result, and use the second audio control instruction 2. The audio playback result is used as the audio playback result;若所述音频控制指令为第三音频控制指令时,则根据所述第三音频控制指令控制所述初始化后的Audio组件播放所述下行音频文件,得到第三音频播放结果,并将所述第三音频播放结果作为音频播放结果。If the audio control instruction is a third audio control instruction, control the initialized Audio component to play the downlink audio file according to the third audio control instruction, obtain a third audio playback result, and use the third audio control instruction Three audio playback results are used as audio playback results.3.根据权利要求2所述的网页音频播放方法,其特征在于,所述初始化后的Audio组件包括上行Audio组件和下行Audio组件,所述根据所述第一音频控制指令控制所述初始化后的Audio组件播放所述上行音频文件和所述下行音频文件,得到第一音频播放结果的过程包括:3. The web page audio playback method according to claim 2, wherein the Audio component after the initialization comprises an upstream Audio component and a downstream Audio component, and the initialized audio component is controlled according to the first audio control instruction. The Audio component plays the upstream audio file and the downstream audio file, and the process of obtaining the first audio playback result includes:根据所述第一音频控制指令控制所述上行Audio组件播放所述上行音频文件,得到上行音频播放结果,Control the upstream Audio component to play the upstream audio file according to the first audio control instruction, and obtain the upstream audio playback result,并根据所述第一音频控制指令控制所述下行Audio组件播放所述下行音频文件,得到下行音频播放结果;And control the downlink Audio component to play the downlink audio file according to the first audio control instruction, and obtain a downlink audio playback result;将所述上行音频播放结果和所述下行音频播放结果一并作为第一音频播放结果。The upstream audio playback result and the downstream audio playback result are taken together as the first audio playback result.4.根据权利要求3所述的网页音频播放方法,其特征在于,所述根据所述第二音频控制指令控制所述初始化后的Audio组件播放所述上行音频文件,得到第二音频播放结果的过程包括:4. web page audio playback method according to claim 3, is characterized in that, described according to described second audio control instruction to control described audio component after the initialization to play described upstream audio file, obtain the second audio playback result The process includes:根据所述第二音频控制指令控制所述上行Audio组件播放所述上行音频文件,得到第二音频播放结果。Control the upstream Audio component to play the upstream audio file according to the second audio control instruction to obtain a second audio playback result.5.根据权利要求3所述的网页音频播放方法,其特征在于,所述根据所述第三音频控制指令控制所述初始化后的Audio组件播放所述下行音频文件,得到第三音频播放结果的过程包括:5. The webpage audio playback method according to claim 3, wherein the audio component after the initialization is controlled to play the downlink audio file according to the third audio control instruction, and the third audio playback result is obtained. The process includes:根据所述第三音频控制指令控制所述下行Audio组件播放所述下行音频文件,得到第三音频播放结果。The downstream Audio component is controlled to play the downstream audio file according to the third audio control instruction, and a third audio playback result is obtained.6.一种网页音频播放装置,其特征在于,包括:6. A webpage audio playback device, characterized in that, comprising:组件初始化模块,用于导入Audio组件和音频控制指令,并对所述Audio组件进行初始化,得到初始化后的Audio组件;The component initialization module is used to import Audio components and audio control instructions, and initialize the Audio components to obtain the initialized Audio components;音频拆分模块,用于通过web网页获得音频文件,并对所述音频文件进行拆分,得到上行音频文件和下行音频文件;an audio splitting module, used for obtaining audio files through web pages, and splitting the audio files to obtain upstream audio files and downstream audio files;音频播放结果获得模块,用于根据所述音频控制指令控制所述初始化后的Audio组件对所述上行音频文件和/或所述下行音频文件进行音频播放的分析,得到音频播放结果。An audio playback result obtaining module, configured to control the initialized Audio component to perform audio playback analysis on the upstream audio file and/or the downstream audio file according to the audio control instruction to obtain an audio playback result.7.根据权利要求6所述的网页音频播放装置,其特征在于,所述音频播放结果获得模块具体用于:7. The webpage audio playback device according to claim 6, wherein the audio playback result obtaining module is specifically used for:若所述音频控制指令为第一音频控制指令时,则根据所述第一音频控制指令控制所述初始化后的Audio组件播放所述上行音频文件和所述下行音频文件,得到第一音频播放结果,并将所述第一音频播放结果作为音频播放结果;If the audio control instruction is the first audio control instruction, control the initialized Audio component to play the upstream audio file and the downstream audio file according to the first audio control instruction, and obtain a first audio playback result , and the first audio playback result is used as the audio playback result;若所述音频控制指令为第二音频控制指令时,则根据所述第二音频控制指令控制所述初始化后的Audio组件播放所述上行音频文件,得到第二音频播放结果,并将所述第二音频播放结果作为音频播放结果;If the audio control instruction is a second audio control instruction, control the initialized Audio component to play the upstream audio file according to the second audio control instruction, obtain a second audio playback result, and use the second audio control instruction 2. The audio playback result is used as the audio playback result;若所述音频控制指令为第三音频控制指令时,则根据所述第三音频控制指令控制所述初始化后的Audio组件播放所述下行音频文件,得到第三音频播放结果,并将所述第三音频播放结果作为音频播放结果。If the audio control instruction is a third audio control instruction, control the initialized Audio component to play the downlink audio file according to the third audio control instruction, obtain a third audio playback result, and use the third audio control instruction Three audio playback results are used as audio playback results.8.根据权利要求7所述的网页音频播放装置,其特征在于,所述初始化后的Audio组件包括上行Audio组件和下行Audio组件,所述音频播放结果获得模块还用于:8. webpage audio playback device according to claim 7, is characterized in that, the Audio component after described initialization comprises upstream Audio component and downlink Audio component, and described audio playback result obtaining module is also used for:根据所述第一音频控制指令控制所述上行Audio组件播放所述上行音频文件,得到上行音频播放结果,Control the upstream Audio component to play the upstream audio file according to the first audio control instruction, and obtain the upstream audio playback result,并根据所述第一音频控制指令控制所述下行Audio组件播放所述下行音频文件,得到下行音频播放结果;And control the downlink Audio component to play the downlink audio file according to the first audio control instruction, and obtain a downlink audio playback result;将所述上行音频播放结果和所述下行音频播放结果一并作为第一音频播放结果。The upstream audio playback result and the downstream audio playback result are taken together as the first audio playback result.9.一种网页音频播放系统,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,当所述处理器执行所述计算机程序时,实现如权利要求1至5任一项所述的网页音频播放方法。9. A web page audio playback system, comprising a memory, a processor and a computer program stored in the memory and running on the processor, wherein when the processor executes the computer program, Implement the web page audio playback method according to any one of claims 1 to 5.10.一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,当所述计算机程序被处理器执行时,实现如权利要求1至5任一项所述的网页音频播放方法。10. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the computer program according to any one of claims 1 to 5 is implemented. Web page audio playback method.
CN202111294440.9A2021-11-032021-11-03Webpage audio playing method and device and storage mediumPendingCN114237731A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202111294440.9ACN114237731A (en)2021-11-032021-11-03Webpage audio playing method and device and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202111294440.9ACN114237731A (en)2021-11-032021-11-03Webpage audio playing method and device and storage medium

Publications (1)

Publication NumberPublication Date
CN114237731Atrue CN114237731A (en)2022-03-25

Family

ID=80743793

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202111294440.9APendingCN114237731A (en)2021-11-032021-11-03Webpage audio playing method and device and storage medium

Country Status (1)

CountryLink
CN (1)CN114237731A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN115357211A (en)*2022-10-192022-11-18北京尽微致广信息技术有限公司Audio playing method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110162660A (en)*2019-05-282019-08-23维沃移动通信有限公司 Audio processing method, device, mobile terminal and storage medium
CN111768798A (en)*2020-07-022020-10-13上海米鹊科技有限公司 A method and system for simulating a telephone to realize the separation of calling and called audio

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN110162660A (en)*2019-05-282019-08-23维沃移动通信有限公司 Audio processing method, device, mobile terminal and storage medium
CN111768798A (en)*2020-07-022020-10-13上海米鹊科技有限公司 A method and system for simulating a telephone to realize the separation of calling and called audio

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CCZHENGV: "Audio HAL通话录音上下行分离", Retrieved from the Internet <URL:http://www.niaoyun.com/info/details/25936.html>*
WEIXIN_47276928: "web audio之多轨语音播放", Retrieved from the Internet <URL:http://blog.csdn.net/weixin_47276928/article/details/108239361>*

Cited By (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN115357211A (en)*2022-10-192022-11-18北京尽微致广信息技术有限公司Audio playing method and device

Similar Documents

PublicationPublication DateTitle
JP7551865B2 (en) Video distribution device, video distribution method, video distribution program, and video distribution system
JP7612581B2 (en) Targeted gaming news and content feed
JP2010530286A5 (en)
JP7366948B2 (en) Game replay method and system
US10413828B2 (en)Incorporating player-generated audio in an electronic game
JP6216120B2 (en) GAME PROGRAM, GAME DEVICE, GAME SYSTEM, AND GAME PROCESSING METHOD
CN111026907B (en)Method and device for displaying audio information in audio playing process
US20110009191A1 (en)System and method for multi-media game
US12400649B2 (en)Customized dialogue support
CN114237731A (en)Webpage audio playing method and device and storage medium
CN109726308A (en) A method and device for generating background music of a novel
JP2023016006A (en) Exercise or sports equipment as a game controller
WO2024019818A1 (en)Intent identification for dialogue support
JP2022081598A (en) Application control program, application control system and application control method
CN112086080A (en)Music rhythm feedback method and device, electronic equipment and system
CN113827972B (en)Game skill sound effect processing method, nonvolatile storage medium and electronic device
JP7022190B1 (en) Game server, game program, information processing method
CN111813990B (en) A method for processing audio battle and related device
Żuchowska et al.Affective games provide controlable context: proposal of an experimental framework
JP2016086899A (en)Game processing method, game processing system, and game processing program
JP6953582B1 (en) Content playback program and content playback device
CN109792566A (en) A way to combine data
WO2017081486A1 (en)Video system
JP2023035898A (en)Audio analysis and accessibility across applications and platforms
JP2022084722A (en) Application control program, application control system and application control method

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20220325


[8]ページ先頭

©2009-2025 Movatter.jp