[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN109599133A - Switching method, device, computer equipment and the storage medium of language soundtrack - Google Patents

Switching method, device, computer equipment and the storage medium of language soundtrack Download PDF

Info

Publication number
CN109599133A
CN109599133A CN201811549608.4A CN201811549608A CN109599133A CN 109599133 A CN109599133 A CN 109599133A CN 201811549608 A CN201811549608 A CN 201811549608A CN 109599133 A CN109599133 A CN 109599133A
Authority
CN
China
Prior art keywords
language
audio data
track
cache queue
language track
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.)
Granted
Application number
CN201811549608.4A
Other languages
Chinese (zh)
Other versions
CN109599133B (en
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.)
Qingdao Hisense Electronics Co Ltd
Original Assignee
Qingdao Hisense Electronics 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 Qingdao Hisense Electronics Co Ltd filed Critical Qingdao Hisense Electronics Co Ltd
Priority to CN201811549608.4A priority Critical patent/CN109599133B/en
Publication of CN109599133A publication Critical patent/CN109599133A/en
Application granted granted Critical
Publication of CN109599133B publication Critical patent/CN109599133B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B27/00Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
    • G11B27/10Indexing; Addressing; Timing or synchronising; Measuring tape travel
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11BINFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
    • G11B20/00Signal processing not specific to the method of recording or reproducing; Circuits therefor
    • G11B20/10Digital recording or reproducing
    • G11B20/10527Audio or video recording; Data buffering arrangements
    • G11B2020/1062Data buffering arrangements, e.g. recording or playback buffers

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

Present invention discloses a kind of switching method of language soundtrack, device, computer equipment and storage mediums, belong to monitoring and scheduling technical field, the described method includes: obtain corresponding first audio data of first language and the corresponding second audio data of second language, and cached respectively to being locally stored in middle first language track and the corresponding level cache queue of second language track;In response to the playing request played out by the first language track, first audio data described in the corresponding level cache queue of the first language track is cached into the corresponding L2 cache queue of the first language track, and is issued in the module for carrying out sound broadcasting;In response to switching to the first switching request of the second language track, the first audio data cached in the module for carrying out sound broadcasting is removed.So that player is not in the mute of a period of time, improves the result of broadcast of player when carrying out track switching.

Description

Switching method, device, computer equipment and the storage medium of language soundtrack
Technical field
The present invention relates to Audiotechnica fields, set more particularly to the switching method, device, computer of a kind of language soundtrack Standby and storage medium.
Background technique
For player when playing the audio-video comprising multiple language, player can play different language according to demand It switches between track, such as is switched between Chinese track or English track, play different language sound to meet The demand of sound.
The track that existing player can be inputted according to user selects, by the corresponding audio data of the selected track of user It is sent in the decoder module and rendering module of player, and sound broadcasting is carried out by decoder and rendering module.For Realize that smooth sound plays, player can control decoder and rendering module and cache the currently playing of a period of time in advance The corresponding audio data of track.
When being switched to other tracks, decoder and rendering module cache the corresponding audio data of currently playing track It can be disposed of.When switching to currently playing track again, due to the corresponding audio data of the current audio track of the period Through being disposed of, therefore decoder and rendering module will be unable to the corresponding audio data of acquisition current audio track and play out, from And player will appear the mute of a period of time, influence player in the result of broadcast for playing multilingual track video.
Summary of the invention
Based on this, there is the mute skill of a period of time when carrying out track switching to solve player in the related technology Art problem, the present invention provides track switching method, device, computer equipment and the storage mediums of a kind of player.
In a first aspect, providing a kind of language soundtrack switching method, comprising:
Corresponding first audio data of first language and the corresponding second audio data of second language are obtained, and is cached respectively To being locally stored in middle first language track and the corresponding level cache queue of second language track;
It is in response to the playing request played out by the first language track, the first language track is corresponding First audio data described in level cache queue is cached into the corresponding L2 cache queue of the first language track, and under It is sent in the module for carrying out sound broadcasting;
In response to switching to the first switching request of the second language track, remove described for carrying out sound broadcasting The first audio data cached in module, described second will cached in the corresponding level cache queue of the second language track Audio data is cached into the corresponding L2 cache queue of the second language track and is issued to for carrying out sound broadcasting In module, so that the module for carrying out sound broadcasting carries out sound broadcasting according to the second audio data;
In response to switching to the second switching request of the first language track, remove described for carrying out sound broadcasting The second audio data cached in module, described first will cached in the corresponding L2 cache queue of the first language track Audio data is issued in the module for carrying out sound broadcasting, so that described for carrying out the module root of sound broadcasting Sound broadcasting is carried out according to the first audio data.
Second aspect provides a kind of language soundtrack switching device, comprising:
Acquiring unit, for obtaining corresponding first audio data of first language and the corresponding second audio number of second language According to, and cached respectively to being locally stored in middle first language track and the corresponding level cache queue of second language track;
First execution unit will be described for the playing request in response to being played out by the first language track First audio data described in the corresponding level cache queue of first language track caches corresponding to the first language track In L2 cache queue, and it is issued in the module for carrying out sound broadcasting;
Second execution unit, for the first switching request in response to switching to the second language track, described in removing The first audio data cached in module for carrying out sound broadcasting, by the corresponding level cache team of the second language track The second audio data cached in column is cached into the corresponding L2 cache queue of the second language track and is issued to In module for carrying out sound broadcasting;
Third execution unit, for the second switching request in response to switching to the first language track, described in removing The second audio data cached in module for carrying out sound broadcasting, by the corresponding L2 cache team of the first language track First audio data cached in column is issued in the module for carrying out sound broadcasting.
The third aspect provides a kind of computer equipment, including memory and processor, is stored with meter in the memory Calculation machine readable instruction, when the computer-readable instruction is executed by the processor, so that the processor executes above-mentioned language The step of track switching method.
Fourth aspect provides a kind of storage medium for being stored with computer-readable instruction, the computer-readable instruction When being executed by one or more processors, so that the step of one or more processors execute above-mentioned language soundtrack switching method.
The technical scheme provided by this disclosed embodiment can include the following benefits:
When player in computer equipment passes through first language playing audio-video, even if after switching to other Languages track It, can will be in the corresponding L2 cache queue of first language track when switching to the corresponding first language track of first language again First audio data of caching is sent in the module for carrying out sound broadcasting.So that for carrying out sound broadcasting in player Module can play the corresponding sound of first language according to the first audio data so that player when carrying out track switching not It will appear situation mute for a period of time, improve the result of broadcast of player.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited It is open.
Detailed description of the invention
Fig. 1 is a kind of implementation flow chart of the switching method of language soundtrack shown according to an exemplary embodiment.
Fig. 2 is a kind of block diagram of the switching device of language soundtrack shown according to an exemplary embodiment.
Fig. 3 schematically shows a kind of electronic equipment example block diagram of switching method for realizing above-mentioned language soundtrack.
Fig. 4 schematically shows a kind of computer readable storage medium of switching method for realizing above-mentioned language soundtrack.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Refering to fig. 1, Fig. 1 is a kind of implementation flow chart for language soundtrack switching method that first embodiment of the invention provides, The executing subject of language soundtrack switching method in the present embodiment is computer equipment, which includes specially to be used for Play the terminal of the player of sound and video.The method of language soundtrack switching as shown in Figure 1 may include following steps.
Step S110 obtains corresponding first audio data of first language and the corresponding second audio data of second language, And it is cached respectively to being locally stored in middle first language track and the corresponding level cache queue of second language track.
In step s 110, computer equipment is when carrying out audio broadcasting to the audio-video comprising different language, computer Equipment is correspondingly arranged corresponding language soundtrack for different language, and language soundtrack is used to carry out the audio data of different language Respective handling, the language soundtrack in the present embodiment are two, naturally it is also possible to be three or three or more.Computer equipment obtains The audio, video data comprising different language is taken, and obtains all audio datas in audio, video data;All audio datas include Corresponding first audio data of first language and the corresponding second audio data of second language.Computer equipment is obtaining first After corresponding first audio data of language and the corresponding second audio data of second language, it is cached respectively into being locally stored In first language track and the corresponding level cache queue of second language track.
Step S120, in response to the playing request played out by the first language track, by the first language First audio data cached in the corresponding level cache queue of track is cached to the first language track corresponding two In grade buffer queue and it is issued in the module for carrying out sound broadcasting.
In the step s 120, when user needs computer equipment by first language playing audio-video, input is passed through The playing request that first language track plays out, computer equipment obtain user's input and are played out by first language track Playing request.Computer equipment in response to played out by first language track playing request when, by first language sound The first audio data cached in the corresponding level cache queue of rail is cached to the corresponding L2 cache queue of first language track In, and be issued in the module for being used for carrying out sound broadcasting.Wherein, the corresponding L2 cache queue of first language track is used The first audio data cached in the corresponding level cache queue of first language track backs up;In addition, for carrying out The module that sound plays can be decoder module and rendering module, and decoder module and rendering module are used for according to audio data Sound broadcasting is carried out, the module of progress sound broadcasting further includes other relevant modules for carrying out sound broadcasting certainly.
Step S130 is removed described for carrying out in response to switching to the first switching request of the second language track The first audio data cached in the module that sound plays, will cache in the corresponding level cache queue of the second language track The second audio data cache into the corresponding L2 cache queue of the second language track and be issued to for carrying out In the module that sound plays.
In step s 130, when user needs computer equipment by second language playing audio-video, input is switched To the first switching request of second language track, computer equipment obtains switch to second language track first of user's input Switching request.
When first switching request of the computer equipment in response to switching to second language track, can first it remove for carrying out sound The first audio data cached in the data cached in the module that sound plays, i.e. removing decoder module and rendering module;It will The second audio data cached in the corresponding level cache queue of second language track is cached to second language track corresponding two In grade buffer queue, and it is issued in the module for being used for carrying out sound broadcasting.Wherein, the corresponding second level of second language track Buffer queue is used to back up the second audio data cached in the corresponding level cache queue of second language track, so that The module that must be used to carry out sound broadcasting carries out sound broadcasting according to second audio data.
Step S140 is removed described for carrying out in response to switching to the second switching request of the first language track The second audio data cached in the module that sound plays, will cache in the corresponding L2 cache queue of the first language track First audio data be issued in the module for carrying out sound broadcasting.
In step S140, when user needs computer equipment again by first language playing audio-video, it will input Switch to the second switching request of first language track, computer equipment obtains that user's input switches to first language track Two switching requests.When second switching request of the computer equipment in response to switching to first language track, remove for carrying out sound The second audio data that caches in the module that sound plays, and the will cached in the corresponding L2 cache queue of first language track One audio data is issued in the module for carrying out sound broadcasting.
When computer equipment passes through first language playing audio-video, even if being switched to again after switching to other Languages track When the corresponding first language track of first language, can will be cached in the corresponding L2 cache queue of first language track first Audio data is sent in the module for carrying out sound broadcasting.Enable the module for being used to carry out sound broadcasting according to the first audio The corresponding sound of data playback first language, so that computer equipment is not in a period of time when carrying out track switching Mute situation, to improve the result of broadcast of computer equipment.
In one embodiment, described will cached in the corresponding L2 cache queue of the first language track One audio data is issued to before the step in the module for carrying out sound broadcasting, comprising:
Judge the audio of first audio data cached in the corresponding L2 cache queue of the first language track Whether the time is later than the time of current video broadcasting.
Computer equipment is issued by the first audio data cached in the corresponding L2 cache queue of first language track Before into the module for carrying out sound broadcasting, need to judge to cache in the corresponding L2 cache queue of first language track Whether the audio time of the first audio data is later than the time of current video broadcasting, and its object is to guarantee to be issued to for carrying out The play time for the first audio data in module that sound plays is to be later than the time of current video broadcasting, so that calculating The sound that machine equipment plays is able to carry out synchronous with the time for playing video.
It is described to issue first audio data cached in the corresponding L2 cache queue of the first language track Step into the module for carrying out sound broadcasting, comprising:
If when the audio of first audio data cached in the corresponding L2 cache queue of the first language track Between be later than time of current video broadcasting, then described the will cached in the corresponding L2 cache queue of the first language track One audio data is issued in the module for carrying out sound broadcasting.
Work as if the audio time of the first audio data cached in the corresponding L2 cache queue of first language track is later than The time of preceding video playing, then the first audio that computer equipment will cache in the corresponding L2 cache queue of first language track Data distributing is to being used to carry out in the module of sound broadcasting, to guarantee to be issued to the in the module for carrying out sound broadcasting The play time of one audio data be later than current video broadcasting time so that computer equipment play sound and Play the time synchronization of video.
In one embodiment, it is cached in the corresponding L2 cache queue of the judgement first language track described Whether the audio time of the first audio data was later than after the step of time of current video broadcasting, comprising:
If when the audio of first audio data cached in the corresponding L2 cache queue of the first language track Between time for being played earlier than current video, then described the will cached in the corresponding L2 cache queue of the first language track The audio data portion of the time played in one audio data earlier than current video is deleted.
If the audio time of the first audio data cached in the corresponding L2 cache queue of first language track is earlier than working as The time of preceding video playing, then computer equipment need to cache in the corresponding L2 cache queue of first language track first The audio data portion of the time played in audio data earlier than current video is deleted, and is broadcast to avoid being issued to for carrying out sound The play time of the first audio data in the module put is the time played earlier than current video, and then avoids the occurrence of calculating The case where time irreversibility for the sound and broadcasting video that machine equipment plays.
In one embodiment, it is cached in the corresponding L2 cache queue of the judgement first language track described Whether the audio time of the first audio data was later than before the step of time equal to current video broadcasting, further includes:
Judge in the corresponding L2 cache queue of the first language track with the presence or absence of the first audio data of caching.
It, will be described if there is the first audio data of caching in the corresponding L2 cache queue of first language track It is corresponding that the first audio data cached in the corresponding L2 cache queue of first language track backs up to the first language track Level cache queue in end, to the first sound cached in the corresponding level cache queue of the first language track Frequency evidence is updated processing.
Empty the first audio data cached in the corresponding L2 cache queue of the first language track, and by described Updated first audio data caches corresponding to the first language track in the corresponding level cache queue of one language soundtrack L2 cache queue in.
When second switching request of the computer equipment in response to switching to first language track, need first to first language sound The first audio data cached in the corresponding L2 cache queue of rail is handled, to guarantee the corresponding second level of first language track The first audio data cached in buffer queue is to arrange sequentially in time.Computer equipment judges first language track phase With the presence or absence of the first audio data of caching in the L2 cache queue answered, if the corresponding L2 cache queue of first language track Middle the first audio data that there is caching, then the first audio number that will be cached in the corresponding L2 cache queue of first language track According to the end backed up in the corresponding level cache queue of first language track, to the corresponding level cache of first language track The first audio data cached in queue is updated processing, so that the corresponding level cache queue of first language track Middle the first cached audio data arranges sequentially in time.
Computer equipment empties the first audio data cached in the corresponding L2 cache queue of first language track, and will Updated first audio data caches corresponding to first language track in the corresponding level cache queue of first language track In L2 cache queue, in order to which the first audio data cached in the corresponding L2 cache queue of first language track is issued Into the module for carrying out sound broadcasting.
In one embodiment, described will cached in the corresponding level cache queue of the second language track Two audio datas are cached into the corresponding L2 cache queue of the second language track and are issued to for carrying out sound broadcasting Module in step before, comprising:
When by the audio of the second audio data cached in the corresponding level cache queue of the second language track Between with current video play time be compared;
If when the audio of the second audio data cached in the corresponding level cache queue of the second language track Between time for being played earlier than current video, then described the will cached in the corresponding L2 cache queue of the second language track The audio data portion of the time played in two audio datas earlier than current video is deleted;
If when the audio of the second audio data cached in the corresponding level cache queue of the second language track Between be later than current video broadcasting time, then wait the corresponding time so that the corresponding level cache team of the second language track The time synchronization that the audio time and current video of the second audio data cached in column play.
Computer equipment by the second audio data cached in the corresponding level cache queue of second language track cache to In the corresponding L2 cache queue of second language track and before being issued in the module for carrying out sound broadcasting, need The audio time of the second audio data cached in the corresponding level cache queue of two language soundtracks and current video play when Between be compared.If the audio time of the second audio data cached in the corresponding level cache queue of second language track earlier than The time that current video plays, due to illustrating the section audio data pair when audio time is earlier than the time that current video plays The sound answered played, so being deleted.Therefore computer equipment is needed second language track corresponding two The audio data portion of the time played in the second audio data cached in grade buffer queue earlier than current video is deleted, with So that the audio time of the second audio data cached in the corresponding level cache queue of second language track is broadcast with current video The time synchronization put.
Work as if the audio time of the second audio data cached in the corresponding level cache queue of second language track is later than The time of preceding video playing, then computer equipment can wait the corresponding time so that the corresponding level cache of second language track The time synchronization that the audio time and current video of the second audio data cached in queue play after synchronization will also Audio data through playing is released from the second audio data cached in the corresponding level cache queue of second language track Come, to keep the audio time of the second audio data cached in the corresponding level cache queue of second language track and work as forward sight The time that frequency plays is in synchronous regime always.
As shown in Fig. 2, in one embodiment, a kind of switching device of language soundtrack is provided, the language soundtrack Switching device can integrate in above-mentioned computer equipment 100, can specifically include acquiring unit 110, the first execution unit 120, the second execution unit 130 and third execution unit 140.
Acquiring unit 110, for obtaining corresponding first audio data of first language and corresponding second sound of second language Frequency evidence, and cached respectively to being locally stored in middle first language track and the corresponding level cache queue of second language track;
First execution unit 120, for the playing request in response to being played out by the first language track, by institute State the first audio data described in the corresponding level cache queue of first language track cache it is corresponding to the first language track L2 cache queue in, and be issued in the module for carrying out sound broadcasting;
Second execution unit 130 removes institute for the first switching request in response to switching to the second language track The first audio data cached in the module for carrying out sound broadcasting is stated, by the corresponding level cache of the second language track The second audio data cached in queue is cached into the corresponding L2 cache queue of the second language track and is issued Into the module for carrying out sound broadcasting;
Third execution unit 140 removes institute for the second switching request in response to switching to the first language track The second audio data cached in the module for carrying out sound broadcasting is stated, by the corresponding L2 cache of first language track First audio data cached in queue is issued in the module for carrying out sound broadcasting.
Optionally, the switching device of the language soundtrack, further includes:
First judging unit, for judging cache in the corresponding L2 cache queue of the first language track described Whether the audio time of one audio data is later than the time of current video broadcasting;
The third execution unit, comprising:
Subelement is executed, if first sound for caching in the corresponding L2 cache queue of the first language track The audio time of frequency evidence is later than the time of current video broadcasting, then by the corresponding L2 cache queue of the first language track First audio data of middle caching is issued in the module for carrying out sound broadcasting.
Optionally, the switching device of the language soundtrack, further includes:
4th execution unit, if described first for being cached in the corresponding L2 cache queue of the first language track The audio time of audio data is earlier than the time that current video plays, then by the corresponding L2 cache team of the first language track The audio data portion of the time played in first audio data cached in column earlier than current video is deleted.
Optionally, the switching device of the language soundtrack, further includes:
Second judgment unit, for judging in the corresponding L2 cache queue of the first language track with the presence or absence of caching The first audio data;
Updating unit, if the first audio for there is caching in the corresponding L2 cache queue of the first language track The first audio data cached in the corresponding L2 cache queue of the first language track is then backed up to described first by data End in the corresponding level cache queue of language soundtrack, to institute in the corresponding level cache queue of the first language track First audio data of caching is updated processing;
5th execution unit, for emptying the first sound cached in the corresponding L2 cache queue of the first language track Frequency evidence, and updated first audio data in the corresponding level cache queue of the first language track is cached to described In the corresponding L2 cache queue of first language track.
Optionally, the switching device of the language soundtrack, further includes:
Comparing unit, second audio for will be cached in the corresponding level cache queue of the second language track The audio time of data is compared with the time that current video plays;
Unit is deleted, if second audio for caching in the corresponding level cache queue of the second language track The audio time of data, then will be in the corresponding L2 cache queue of the second language track earlier than the time that current video plays The audio data portion of the time played in the second audio data of caching earlier than current video is deleted;
Synchronization unit, if second audio for being cached in the corresponding level cache queue of the second language track The audio time of data is later than the time of current video broadcasting, then waits the corresponding time so that the second language track is corresponding Level cache queue in the time synchronization that plays of the audio time of the second audio data that caches and current video.
The function of modules and the realization process of effect are specifically detailed in the switching side of above-mentioned language soundtrack in above-mentioned apparatus The realization process of step is corresponded in method, details are not described herein.
It should be noted that although being referred to several modules or list for acting the equipment executed in the above detailed description Member, but this division is not enforceable.In fact, according to embodiment of the present disclosure, it is above-described two or more Module or the feature and function of unit can embody in a module or unit.Conversely, an above-described mould The feature and function of block or unit can be to be embodied by multiple modules or unit with further division.
In addition, although describing each step of method in the disclosure in the accompanying drawings with particular order, this does not really want These steps must be executed in this particular order by asking or implying, or having to carry out step shown in whole could realize Desired result.Additional or alternative, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/ Or a step is decomposed into execution of multiple steps etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, mobile terminal or network equipment etc.) is executed according to disclosure embodiment Method.
In an exemplary embodiment of the disclosure, a kind of electronic equipment that can be realized the above method is additionally provided.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or Program product.Therefore, various aspects of the invention can be embodied in the following forms, it may be assumed that complete hardware embodiment, complete The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here Referred to as circuit, " module " or " system ".
It is the computer equipment 300 of this embodiment according to the present invention refering to Fig. 3, Fig. 3.The electronics that Fig. 3 is shown is set Standby 300 be only an example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in figure 3, electronic equipment 300 is showed in the form of universal computing device.The component of electronic equipment 300 can wrap It includes but is not limited to: at least one above-mentioned processing unit 310, at least one above-mentioned storage unit 320, the different system components of connection The bus 330 of (including storage unit 320 and processing unit 310).
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 310 Row, so that various according to the present invention described in the execution of the processing unit 310 above-mentioned " illustrative methods " part of this specification The step of illustrative embodiments.For example, the processing unit 310 can execute step S110 as shown in fig. 1: obtaining the Corresponding first audio data of one language and the corresponding second audio data of second language, and is cached into being locally stored respectively In one language soundtrack and the corresponding level cache queue of second language track;Step S120: in response to passing through the first language The playing request that track plays out, by the first audio data described in the corresponding level cache queue of the first language track Caching is issued in the module for carrying out sound broadcasting into the corresponding L2 cache queue of the first language track; Step S130: the first switching request in response to switching to the second language track is removed described for carrying out sound broadcasting Module in the first audio data for caching, described will cached in the corresponding level cache queue of the second language track Two audio datas are cached into the corresponding L2 cache queue of the second language track and are issued to for carrying out sound broadcasting Module in;Step S140: the second switching request in response to switching to the first language track is removed described for carrying out The second audio data cached in the module that sound plays, will cache in the corresponding L2 cache queue of the first language track First audio data be issued in the module for carrying out sound broadcasting.
Storage unit 320 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit (RAM) 3201 and/or cache memory unit 3202, it can further include read-only memory unit (ROM) 3203.
Storage unit 320 can also include program/utility with one group of (at least one) program module 3205 3204, such program module 3205 includes but is not limited to: operating system, one or more application program, other program moulds It may include the realization of network environment in block and program data, each of these examples or certain combination.
Bus 330 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures Local bus.
Electronic equipment 300 can also be with one or more external equipments 500 (such as keyboard, sensing equipment, bluetooth equipment Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 300 communicate, and/or with make Any equipment (such as the router, modulation /demodulation that the electronic equipment 300 can be communicated with one or more of the other calculating equipment Device etc.) communication.This communication can be carried out by input/output (I/O) interface 330.Also, electronic equipment 300 can be with By network adapter 360 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, Such as internet) communication.As shown, network adapter 360 is communicated by bus 330 with other modules of electronic equipment 300. It should be understood that although not shown in the drawings, other hardware and/or software module can not used in conjunction with electronic equipment 300, including but not Be limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and Data backup storage system etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, terminal installation or network equipment etc.) is executed according to disclosure embodiment Method.
In an exemplary embodiment of the disclosure, a kind of computer readable storage medium is additionally provided, energy is stored thereon with Enough realize the program product of this specification above method.In some possible embodiments, various aspects of the invention may be used also In the form of being embodied as a kind of program product comprising program code, when described program product is run on the terminal device, institute Program code is stated for executing the terminal device described in above-mentioned " illustrative methods " part of this specification according to this hair The step of bright various illustrative embodiments.
Refering to what is shown in Fig. 4, describing the program product for realizing the above method of embodiment according to the present invention 400, can be using portable compact disc read only memory (CD-ROM) and including program code, and can be set in computer It is standby, such as run on PC.However, program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing can With to be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or Person is in connection.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal, Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have Line, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages Code, described program design language include object oriented program language-Java, C++ etc., further include conventional Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network (WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP To be connected by internet).
In addition, above-mentioned attached drawing is only the schematic theory of processing included by method according to an exemplary embodiment of the present invention It is bright, rather than limit purpose.It can be readily appreciated that the time that above-mentioned processing shown in the drawings did not indicated or limited these processing is suitable Sequence.In addition, be also easy to understand, these processing, which can be, for example either synchronously or asynchronously to be executed in multiple modules.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure His embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Adaptive change follow the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure or Conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by claim It points out.

Claims (10)

1. a kind of switching method of language soundtrack, which is characterized in that the described method includes:
Corresponding first audio data of first language and the corresponding second audio data of second language are obtained, and is cached respectively to this In ground storage in first language track and the corresponding level cache queue of second language track;
In response to the playing request played out by the first language track, by the corresponding level-one of the first language track First audio data described in buffer queue is cached into the corresponding L2 cache queue of the first language track, and is issued to In module for carrying out sound broadcasting;
In response to switching to the first switching request of the second language track, remove described for carrying out the module of sound broadcasting First audio data of middle caching, second audio that will be cached in the corresponding level cache queue of the second language track Data buffer storage is into the corresponding L2 cache queue of the second language track and is issued to the module for carrying out sound broadcasting In;
In response to switching to the second switching request of the first language track, remove described for carrying out the module of sound broadcasting The second audio data of middle caching, first audio that will be cached in the corresponding L2 cache queue of the first language track Data distributing is into the module for carrying out sound broadcasting.
2. the method according to claim 1, wherein described by the corresponding L2 cache of first language track First audio data cached in queue is issued to before the step in the module for carrying out sound broadcasting, packet It includes:
Judge the audio time of first audio data cached in the corresponding L2 cache queue of the first language track Whether the time of current video broadcasting is later than;
It is described that first audio data cached in the corresponding L2 cache queue of the first language track is issued to institute State the step in the module for carrying out sound broadcasting, comprising:
If the audio time evening of first audio data cached in the corresponding L2 cache queue of the first language track In the time that current video plays, then first sound that will be cached in the corresponding L2 cache queue of the first language track Frequency evidence is issued in the module for carrying out sound broadcasting.
3. according to the method described in claim 2, it is characterized in that, the corresponding second level of the judgement first language track is slow Deposit first audio data cached in queue audio time whether be later than current video broadcasting time the step of after, Include:
If the audio time of first audio data cached in the corresponding L2 cache queue of the first language track is early In the time that current video plays, then first sound that will be cached in the corresponding L2 cache queue of the first language track The audio data portion for the time that frequency plays in earlier than current video is deleted.
4. according to the method described in claim 2, it is characterized in that, the corresponding second level of the judgement first language track is slow Deposit first audio data cached in queue audio time whether be later than current video broadcasting time the step of before, Further include:
Judge in the corresponding L2 cache queue of the first language track with the presence or absence of the first audio data of caching;
If there is the first audio data of caching in the corresponding L2 cache queue of first language track, by described first The first audio data cached in the corresponding L2 cache queue of language soundtrack backs up to the first language track corresponding one End in grade buffer queue, to the first audio number cached in the corresponding level cache queue of the first language track It is handled according to being updated;
Empty the first audio data cached in the corresponding L2 cache queue of the first language track, and by first language Updated first audio data is cached to the first language track corresponding two in the corresponding level cache queue of speech track In grade buffer queue.
5. the method according to claim 1, wherein described by the corresponding level cache of the second language track The second audio data cached in queue is cached into the corresponding L2 cache queue of the second language track and is issued Before step into the module for carrying out sound broadcasting, comprising:
By the audio time of the second audio data cached in the corresponding level cache queue of the second language track with The time that current video plays is compared;
If the audio time of the second audio data cached in the corresponding level cache queue of the second language track is early In the time that current video plays, then second sound that will be cached in the corresponding L2 cache queue of the second language track The audio data portion for the time that frequency plays in earlier than current video is deleted;
If the audio time evening of the second audio data cached in the corresponding level cache queue of the second language track In the time that current video plays, then the corresponding time is waited so that in the corresponding level cache queue of the second language track The time synchronization that the audio time and current video of the second audio data of caching play.
6. a kind of switching device of language soundtrack, which is characterized in that described device includes:
Acquiring unit, for obtaining corresponding first audio data of first language and the corresponding second audio data of second language, And it is cached respectively to being locally stored in middle first language track and the corresponding level cache queue of second language track;
First execution unit, for the playing request in response to being played out by the first language track, by described first First audio data described in the corresponding level cache queue of language soundtrack is cached to the corresponding second level of first language track In buffer queue, and it is issued in the module for carrying out sound broadcasting;
Second execution unit is used for described in removing for the first switching request in response to switching to the second language track The first audio data cached in the module of sound broadcasting is carried out, it will be in the corresponding level cache queue of the second language track The second audio data of caching, which is cached into the corresponding L2 cache queue of the second language track and is issued to, to be used for In the module for carrying out sound broadcasting;
Third execution unit is used for described in removing for the second switching request in response to switching to the first language track The second audio data cached in the module of sound broadcasting is carried out, it will be in the corresponding L2 cache queue of the first language track First audio data of caching is issued in the module for carrying out sound broadcasting.
7. device according to claim 6, which is characterized in that described device, further includes:
First judging unit, first sound for judging to cache in the corresponding L2 cache queue of the first language track Whether the audio time of frequency evidence is later than the time of current video broadcasting;
The third execution unit, comprising:
Subelement is executed, if the first audio number for caching in the corresponding L2 cache queue of the first language track According to audio time be later than current video broadcasting time, then will in the corresponding L2 cache queue of the first language track delay First audio data deposited is issued in the module for carrying out sound broadcasting.
8. device according to claim 6, which is characterized in that described device further include:
4th execution unit, if first audio for being cached in the corresponding L2 cache queue of the first language track The audio time of data, then will be in the corresponding L2 cache queue of the first language track earlier than the time that current video plays The audio data portion of the time played in first audio data of caching earlier than current video is deleted.
9. a kind of computer equipment, including memory and processor, it is stored with computer-readable instruction in the memory, it is described When computer-readable instruction is executed by the processor, so that the processor is executed as described in any one of claims 1 to 5 Method.
10. a kind of storage medium for being stored with computer-readable instruction, the computer-readable instruction is handled by one or more When device executes, so that one or more processors execute the method as described in any one of claims 1 to 5.
CN201811549608.4A 2018-12-18 2018-12-18 Language audio track switching method and device, computer equipment and storage medium Active CN109599133B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811549608.4A CN109599133B (en) 2018-12-18 2018-12-18 Language audio track switching method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811549608.4A CN109599133B (en) 2018-12-18 2018-12-18 Language audio track switching method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109599133A true CN109599133A (en) 2019-04-09
CN109599133B CN109599133B (en) 2020-11-24

Family

ID=65963019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811549608.4A Active CN109599133B (en) 2018-12-18 2018-12-18 Language audio track switching method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109599133B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111338986A (en) * 2020-03-13 2020-06-26 北京艾克斯特科技有限公司 Three-dimensional model data structure, creation and data acquisition method
CN111601158A (en) * 2020-05-14 2020-08-28 青岛海信传媒网络技术有限公司 Method for optimizing audio track cutting of streaming media pipeline and display equipment
CN113596545A (en) * 2021-07-21 2021-11-02 中央广播电视总台 Audio track switching method and device, media playing device and computer storage medium
US12147729B2 (en) 2020-01-10 2024-11-19 Tencent Music Entertainment Technology (Shenzhen) Co., Ltd. Method and system for playing audios

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103780943A (en) * 2014-01-24 2014-05-07 华为技术有限公司 Audio channel switching method, device and system
CN104967901A (en) * 2015-06-29 2015-10-07 腾讯科技(北京)有限公司 Audio track switching method in multimedia playing and multimedia playing device
CN106604124A (en) * 2015-10-19 2017-04-26 深圳市中兴微电子技术有限公司 Audio data playing method and device
CN107426600A (en) * 2017-06-30 2017-12-01 北京威动科技有限公司 Switch the player method and device of track and captions rail
CN108040277A (en) * 2017-12-04 2018-05-15 青岛海信电器股份有限公司 For the subtitle switching method and device of the multi-language captions obtained after decoding
CN108810575A (en) * 2017-05-04 2018-11-13 杭州海康威视数字技术股份有限公司 A kind of method and apparatus sending target video

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103780943A (en) * 2014-01-24 2014-05-07 华为技术有限公司 Audio channel switching method, device and system
CN104967901A (en) * 2015-06-29 2015-10-07 腾讯科技(北京)有限公司 Audio track switching method in multimedia playing and multimedia playing device
CN106604124A (en) * 2015-10-19 2017-04-26 深圳市中兴微电子技术有限公司 Audio data playing method and device
CN108810575A (en) * 2017-05-04 2018-11-13 杭州海康威视数字技术股份有限公司 A kind of method and apparatus sending target video
CN107426600A (en) * 2017-06-30 2017-12-01 北京威动科技有限公司 Switch the player method and device of track and captions rail
CN108040277A (en) * 2017-12-04 2018-05-15 青岛海信电器股份有限公司 For the subtitle switching method and device of the multi-language captions obtained after decoding

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US12147729B2 (en) 2020-01-10 2024-11-19 Tencent Music Entertainment Technology (Shenzhen) Co., Ltd. Method and system for playing audios
CN111338986A (en) * 2020-03-13 2020-06-26 北京艾克斯特科技有限公司 Three-dimensional model data structure, creation and data acquisition method
CN111338986B (en) * 2020-03-13 2023-08-04 北京艾克斯特科技有限公司 Method for acquiring data in three-dimensional model data structure
CN111601158A (en) * 2020-05-14 2020-08-28 青岛海信传媒网络技术有限公司 Method for optimizing audio track cutting of streaming media pipeline and display equipment
CN111601158B (en) * 2020-05-14 2021-11-02 青岛海信传媒网络技术有限公司 Method for optimizing audio track cutting of streaming media pipeline and display equipment
CN113596545A (en) * 2021-07-21 2021-11-02 中央广播电视总台 Audio track switching method and device, media playing device and computer storage medium

Also Published As

Publication number Publication date
CN109599133B (en) 2020-11-24

Similar Documents

Publication Publication Date Title
US10182095B2 (en) Method and system for video call using two-way communication of visual or auditory effect
CN108965907B (en) Method, device and system for playing video
US20200259879A1 (en) Interaction method and device for mobile terminal and cloud platform of unmanned aerial vehicle
US20140036022A1 (en) Providing a conversational video experience
CN109599133A (en) Switching method, device, computer equipment and the storage medium of language soundtrack
CN109299088A (en) Mass data storage means, device, storage medium and electronic equipment
CN109495792A (en) A kind of subtitle adding method, device, electronic equipment and the readable medium of video
CN110136713A (en) Dialogue method and system of the user in multi-modal interaction
CN109600677A (en) Data transmission method and device, storage medium, electronic equipment
CN107077344B (en) Interface for multiple media applications
CN110162394B (en) Media object playing method and device, electronic equipment and storage medium
US9369766B2 (en) Method and system for remote altering static video content in real time
CN108701045A (en) Client operating system screenshot method and device in computer equipment
CN113542817B (en) Mixed playing method and equipment for programs
CN115037986B (en) Video self-adaptive playing method and device
US20240329919A1 (en) Speech message playback
CN113766321A (en) Video playing method, device, equipment and storage medium
CN109684488A (en) Carousel control method and its device, computer-readable medium and electronic equipment
CN110225384A (en) The method for pushing of status message, the switching method of interaction content, device and equipment
CN115396684B (en) Wheat connecting display method and device, electronic equipment and computer readable medium
CN116527980A (en) Animation playing method, device, medium and electronic equipment
CN113825014B (en) Multimedia content playing method, device, computer equipment and storage medium
CN110147283A (en) A kind of display content switching display methods, device, equipment and medium
CN115794725A (en) Method for obtaining playing decision, decision system, related equipment and storage medium
CN115970297A (en) VR game implementation method and device, computer readable storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 266000, No. 218, Bay Road, Qingdao economic and Technological Development Zone, Shandong

Applicant after: Hisense Visual Technology Co., Ltd.

Address before: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Applicant before: QINGDAO HISENSE ELECTRONICS Co.,Ltd.

GR01 Patent grant
GR01 Patent grant