CN112015505A - Mode switching method and device and electronic equipment - Google Patents

Mode switching method and device and electronic equipment Download PDF

Info

Publication number
CN112015505A
CN112015505A CN202010812778.8A CN202010812778A CN112015505A CN 112015505 A CN112015505 A CN 112015505A CN 202010812778 A CN202010812778 A CN 202010812778A CN 112015505 A CN112015505 A CN 112015505A
Authority
CN
China
Prior art keywords
audio
component
mode switching
interface
mode
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
CN202010812778.8A
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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010812778.8A priority Critical patent/CN112015505A/en
Publication of CN112015505A publication Critical patent/CN112015505A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The embodiment of the disclosure discloses a mode switching method and device, electronic equipment and a computer-readable storage medium. The mode switching method comprises the following steps: displaying a first interface and playing a first audio, wherein the first interface comprises a mode switching component, and the mode switching component is in a first state corresponding to a first mode; and responding to the condition that the trigger condition of the mode switching component is met, switching from the first interface to a second interface and playing a second audio, wherein the second interface comprises the mode switching component, and the mode switching component is in a second state corresponding to a second mode. The method is triggered by a mode switching component, and the technical problems that the user is inflexible and fussy to operate when using background music and a function of singing following are solved.

Description

Mode switching method and device and electronic equipment
Technical Field
The present disclosure relates to the field of information processing, and in particular, to a mode switching method and apparatus, an electronic device, and a computer-readable storage medium.
Background
With the rapid development of the mobile internet, there are more and more multimedia application services provided by service providers through the network, and in mass multimedia files, audio and video are favored by users of all ages.
In current applications, one typical application of audio and video is to provide background music during live broadcast or to provide accompaniment or original music when singing a song live broadcast. In the prior art, when a user uses background music and a following function, only one of the background music and the following function can be selected and used, and the operation is not flexible and complicated.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
In order to solve the problem that the conventional mode switching recovery method cannot completely recover the original condition, the embodiment of the present disclosure provides the following technical solutions.
In a first aspect, an embodiment of the present disclosure provides a mode switching method, including:
displaying a first interface and playing a first audio, wherein the first interface comprises a mode switching component, and the mode switching component is in a first state corresponding to a first mode;
and responding to the condition that the trigger condition of the mode switching component is met, switching from the first interface to a second interface and playing a second audio, wherein the second interface comprises the mode switching component, and the mode switching component is in a second state corresponding to a second mode.
In a second aspect, an embodiment of the present disclosure provides a mode switching apparatus, including:
the first display module is used for displaying a first interface and playing a first audio, wherein the first interface comprises a mode switching component, and the mode switching component is in a first state corresponding to a first mode; (ii) a
And the second display module is used for responding to the condition that the trigger condition of the mode switching component is met, switching the first interface into a second interface and playing a second audio, wherein the second interface comprises the mode switching component, and the mode switching component is in a second state corresponding to a second mode.
In a third aspect, an embodiment of the present disclosure provides an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of the preceding first aspects.
In a fourth aspect, the present disclosure provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions for causing a computer to perform the method of any one of the foregoing first aspects.
The embodiment of the disclosure discloses a mode switching method and device, electronic equipment and a computer-readable storage medium. The mode switching method comprises the following steps: displaying a first interface and playing a first audio, wherein the first interface comprises a mode switching component, and the mode switching component is in a first state corresponding to a first mode; and responding to the condition that the trigger condition of the mode switching component is met, switching from the first interface to a second interface and playing a second audio, wherein the second interface comprises the mode switching component, and the mode switching component is in a second state corresponding to a second mode. The method is triggered by a mode switching component, and the technical problems that the user is inflexible and fussy to operate when using background music and a function of singing following are solved.
The foregoing is a summary of the present disclosure, and for the purposes of promoting a clear understanding of the technical means of the present disclosure, the present disclosure may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale.
Fig. 1 is a schematic view of an application scenario of an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of a mode switching method according to an embodiment of the present disclosure;
fig. 3a is a schematic diagram of a first interface in a mode switching method according to an embodiment of the disclosure;
fig. 3b is a schematic diagram of a second interface in the mode switching method according to an embodiment of the disclosure;
fig. 4 is a schematic structural diagram of an embodiment of a mode switching device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an electronic device provided according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Fig. 1 is a schematic view of an application scenario of the embodiment of the present disclosure. Fig. 1 is a schematic diagram of a live broadcasting system, which includes a server 101 and terminal devices 102 and 105, where each terminal device includes a client used in live broadcasting, and the server includes resources and services used in live broadcasting; wherein, each of the terminal devices 102 and 105 sends a message that needs to interact with other terminals to the server 101, and the terminal device 102 and 105 pull the resources, such as audio, video, etc., from the server 101 according to a predetermined rule. Therefore, the interaction and synchronization of messages can be performed among the plurality of terminal devices 102 and 105 through the server 101. If the user of the terminal device 102 performs live broadcast through the client, the user of the terminal device 103 and 105 watches the live broadcast content of the terminal device 102 through the server.
Fig. 2 is a flowchart of an embodiment of a mode switching method provided in an embodiment of the present disclosure, where the mode switching method provided in this embodiment may be executed by a mode switching device, and the mode switching device may be implemented as software or implemented as a combination of software and hardware, and the mode switching device may be integrated in a certain device in a mode switching system, such as a mode switching terminal device. As shown in fig. 2, the method comprises the steps of:
step S201, displaying a first interface and playing a first audio, wherein the first interface comprises a mode switching component, and the mode switching component is in a first state corresponding to a first mode;
in this step, the user opens the application and selects the audio to be played, at which time the application displays the first interface and plays the selected first audio. Illustratively, taking the system shown in fig. 1 as an example, the application is a live client, and the live client runs in the terminal device 102; the method comprises the steps that a live client is opened by a user, a live trigger button is displayed in the live client at the moment, when the user clicks the live trigger button, the client sends a live request to a server, and a live service in the server generates a live room and the like. During live broadcasting, the client displays a first interface and plays a first audio selected by a user, the first interface comprises a mode switching component, the mode switching component is used for switching among different audio modes, and exemplarily, the audio modes comprise a background music mode and a karaoke mode. In this step, the mode switching component is in a first state corresponding to the first mode, the first state is a state capable of indicating that the current mode is the first mode, and the first state of the mode switching component is indicated by, for example, characters on the mode switching component and/or a color of the mode switching component and/or a shape of the mode switching component, and the like.
Fig. 3a is a schematic diagram of an example of the first mode. As shown in fig. 3a, the first interface 300a includes a mode switching component 301, in this example, the mode switching component 301 is a switching button, and the text "follow-sing off" corresponding to the current first mode is displayed on the mode switching component 301, that is, the first mode is a non-follow-sing mode, and in this case, the first mode is a background music mode, that is, music played along with live video during live broadcasting.
Optionally, the first interface further includes:
one or more of a first audio control component 302 and a first audio information display component 303; wherein the content of the first and second substances,
the first audio control component 302 is configured to control playing of a first audio;
the first audio information display component 303, configured to receive a trigger signal to display information related to the first audio in a first interface; wherein the related information of the first audio is displayed with a first effect.
As shown in fig. 3a, the first interface further includes a first audio control component 302, illustratively, the first audio control component includes a play control component and a sound effect control component, the play control component includes one or more of a play component, a pause component, a next component and a previous component for controlling the playing and switching of the first audio, and the sound effect control component includes one or more of a channel control component, a treble control component, a bass control component and a preset sound effect selection component for controlling the playing effect of the first audio. The first audio information display component 303 is configured to receive a trigger signal to display information related to the first audio, such as one or more of an author, a comment, a release time, lyrics, and the like of the first audio, in the first interface. The related information of the first audio is displayed with a first effect, for example, the related information of the first audio is lyrics of the first audio, the first effect of the lyrics is that the lyrics are displayed line by line, the currently displayed lyrics are opaque, and the next line of lyrics is displayed semi-transparently, as shown in fig. 3a, and the related information of the first audio is displayed with the first effect on a display position 304 of a first interface. It can be understood that the functions and the displayed information corresponding to the first audio control component and the first audio information display component are examples, and actually the functions and the information of any other control component can be realized and displayed by the above components, which are not described herein again.
Step S202, in response to the trigger condition of the mode switching component being satisfied, switching from the first interface to a second interface and playing a second audio, wherein the second interface includes the mode switching component, and the mode switching component is in a second state corresponding to the second mode.
In this step, if the trigger condition of the mode switching component is satisfied, switching the interface from the first interface to the second interface and playing a second audio; in this step, the mode switching component is in a second state corresponding to the second mode, the second state is a state capable of indicating that the current mode is the second mode, and the second state of the mode switching component is indicated by, for example, characters on the mode switching component and/or a color of the mode switching component and/or a shape of the mode switching component, and the like. Illustratively, the second mode is a karaoke mode, and the second audio is a song to be sung by the user, and the like.
Fig. 3b is a schematic diagram of an example of the second mode. As shown in fig. 3b, the second interface 300b includes a mode switching component 301, in this example, the mode switching component 301 is a switching button, and the text "follow On" corresponding to the current second mode is displayed On the mode switching component 301, that is, the second mode is a follow mode, that is, a karaoke mode, and exemplarily, the second mode is a follow mode, that is, in the live broadcasting process, a song sung by the main broadcaster in the performance of singing.
Optionally, the second interface further includes:
one or more of a second audio control component 302, a second audio information display component 303, and a second audio interaction component 305; wherein the content of the first and second substances,
the second audio control component 302 is configured to control playing of a second audio;
the second audio information display component 303, configured to receive a trigger signal to display information related to the second audio in a second interface; wherein the related information of the second audio is displayed with a second effect;
the second audio interaction component 305 is configured to receive a trigger signal to switch a play mode of the second audio.
Optionally, the second audio control component and the first audio component are the same component, and when the mode is switched, the first audio control component is not changed and is directly used as the second audio control component; or the second audio control component is used as the second audio control component after the function of the first audio component is added or deleted, which is not described herein again. The second audio information displaying component 303 is configured to receive a trigger signal to display information related to the first audio, such as one or more of an author, a comment, a release time, lyrics, and the like of the first audio, in the first interface. The related information of the second audio is displayed with a second effect, for example, the related information of the second audio is lyrics of the second audio, the second effect of the lyrics is that the currently played lyrics are highlighted and enlarged with a first color, and the lyrics of the time are not highlighted and enlarged, as shown in fig. 3a, the related information of the second audio is displayed with the second effect on a display position 304 of the second interface. It can be understood that the functions and the displayed information corresponding to the second audio control component and the second audio information display component are examples, and actually, the functions and the information of any other control component can be realized and displayed by the above components, which are not described herein again.
Different from the first interface, the second interface further includes the second audio interaction component 305, configured to receive a trigger signal to switch a play mode of the second audio. Illustratively, in the following mode, the second audio includes an acoustic play mode and an accompanying play mode, wherein the acoustic play mode is used for playing an acoustic sound of the song, and the accompanying play mode is used for playing an accompaniment of the song, so that the user can follow. Illustratively, the second audio interaction component is an acoustic switching button, and an acoustic playing mode or a singing following playing mode is triggered by pressing of a user; illustratively, the server 101 pre-stores original audio and following audio of a following song used by live broadcasting, the original audio and the following audio are cached in two queues, and in response to the second audio interaction component receiving a trigger signal, switching is performed between the two queues to switch the playing mode; or the server 101 may pre-store the audio of the following song used by the live broadcast, where the audio of the following song includes two sound channels, one of the sound channels is an original sound channel, and the other is an accompaniment sound channel, and in response to the second audio interaction component receiving the trigger signal, switch between the two sound channels to switch the play mode. It can be understood that the specific implementation manner of the switching of the play modes is merely an example, and does not limit the present disclosure, and other switching manners are not described herein again.
Optionally, the second interface further includes:
and a second audio matching component 306, configured to receive a trigger signal to display a matching degree of the third audio and the second audio.
The third audio is the voice of the user received through the terminal device 102, such as the voice of the live user singing. Illustratively, as shown in fig. 3b, the second audio matching component 306 is a score button for following, and when the user clicks the button to trigger the function, the matching degree of the third audio and the second audio is displayed at a position 307 in the second interface; as shown in fig. 3b, the degree of matching is represented by an arrow on a short line, and when the third audio matches the second audio, the arrow falls on the short line and displays a star effect; when the third audio does not match the second audio, the arrow is not on the short line and no other effect is displayed. It can be understood that the above example of displaying the matching degree between the third audio and the second audio is merely an example, and other effects or manners may be used to display the matching degree when the third audio and the second audio are specifically implemented, and details are not described herein. Optionally, the displaying the matching degree of the third audio and the second audio further includes: and when the matching degree of the third audio and the second audio is higher than a first matching threshold value, displaying a fifth effect. The matching degree includes a real-time matching degree and an overall matching degree, the real-time matching degree is as shown in the above example, and the fifth effect is a star effect, which is not described herein again; when the matching degree is the overall matching degree, the matching degree of the third audio and the second audio is displayed when the playing of the second audio is finished, illustratively, the similarity score between the user's singing following and the second audio is displayed when the singing following is finished, and when the similarity score is higher than the first matching threshold, preset effects such as cheering, flower spreading and the like are played.
Optionally, the first interface and the second interface further include: a mode indication component 308 that displays the third effect in the first interface and the fourth effect in the second interface. I.e. the mode indicating component indicates the current mode by different display effects. As shown in fig. 3a and 3b, when in the first mode, the mode indicating component 308 displays logo1, and when in the second mode, the mode indicating component 308 displays logo 2; illustratively, the logo1 is album art of background music, the logo2 is a logo representing the following, such as the logo2 is set as a microphone. The examples of the third and fourth effects described above are merely examples and do not constitute a limitation of the present disclosure.
Optionally, the first audio and the second audio are the same song, and the trigger condition of the mode switching component includes: the first audio is played to a preset time point. In a specific example of this embodiment, the first audio is background music, the second audio is a follow song, in this specific example, the background music and the follow song are follow songs, and the trigger condition of the mode switching component is: the first audio is played to a preset time point. I.e. the background music is played to a preset point in time. The preset time point is the time point when the background music is played for a long time, and illustratively, the preset time point is the time point when the refrain of the song starts, namely, when the background music is played to the refrain part, the background music is switched to the following mode, so that the user can directly follow the climax part of the song, and the operation of clicking the mode switching component by the user can be omitted.
Optionally, the first audio and the second audio are the same song, and the trigger condition of the mode switching component includes: and receiving the third audio, wherein the matching degree of the third audio and the first audio is higher than a second matching threshold. In this alternative embodiment, the first audio and the second audio are the same song, and the third audio is the voice of the user, in this embodiment, the user will follow up the song in the mode of background music, if the matching degree of the user's following voice and the background music is higher than a second matching threshold, the mode is switched to the following mode, and the alternative second matching threshold is smaller than the first matching threshold, so that the mode switching component can be triggered more easily.
Optionally, in order to save network resources and storage resources, the first audio and the second audio are different channels of the same audio. The background music and the following music are the same audio file, like the original sound and the accompaniment sound channel of a song, when the background music is in a background music mode, the original sound channel is played, and when the following music is in a following mode, the accompaniment sound channel and the original sound channel are switched according to the second audio interaction assembly.
Optionally, the first audio and the second audio are different songs, and the trigger condition of the mode switching component includes: a third audio is received and the content of the third audio is identified. The method comprises the steps of receiving voice of a user, identifying a song sung by the user, switching the mode to a following mode, and playing the identified song as following music in the following mode.
It should be understood that the triggering condition of the mode switching component is only an example and does not constitute a limitation to the present disclosure, and practically any form of triggering condition may be applied to the technical solution of the present disclosure. According to the technical scheme, the two original mutually independent functions are realized through the mode switching assembly, so that the mode switching is more flexible and convenient.
One practical application scenario of the embodiment of the present disclosure is a live scenario. The live broadcast user opens the live broadcast room through the client, and other users enter the live broadcast room through the client to watch the live broadcast. In this application scenario, the server 101 shown in fig. 1 is a live server, and the terminal devices 102 and 105 are terminal devices used by live users and audience users, and each terminal device has a live client installed therein. When the live broadcasting is carried out in real time, a live broadcasting user starts a live broadcasting client, background music and live broadcasting user follow-singing music during live broadcasting are the same song, at the moment, a first interface is displayed on the live broadcasting client, as shown in fig. 3a, the background music is played at the moment, a mode switching assembly is in a 'follow-singing off' state, at the moment, if a first audio information assembly display assembly is triggered, lyrics of the background music are displayed in the first interface in a first effect, and a mode indicating assembly displays logo1 to indicate that the current mode is in a background music mode; when a live user wants to play a song in a live broadcast mode, the live user switches to a following mode through a trigger mode switching component and enters a second interface, the song playing mode can be defaulted to be an accompaniment mode at the moment, the accompaniment of the following song is played, at the moment, if a second audio information component display component is triggered, the lyrics of the following song are displayed in the second interface with a second effect, if a second audio matching component is triggered, the matching degree of a third audio and the second audio is displayed in the second interface, and a mode indicating component displays a logo2 which indicates that the live user is in the following mode currently.
The embodiment of the disclosure discloses a mode switching method, which comprises the following steps: displaying a first interface and playing a first audio, wherein the first interface comprises a mode switching component, and the mode switching component is in a first state corresponding to a first mode; and responding to the condition that the trigger condition of the mode switching component is met, switching from the first interface to a second interface and playing a second audio, wherein the second interface comprises the mode switching component, and the mode switching component is in a second state corresponding to a second mode. The method is triggered by a mode switching component, and the technical problems that the user is inflexible and fussy to operate when using background music and a function of singing following are solved.
In the above, although the steps in the above method embodiments are described in the above sequence, it should be clear to those skilled in the art that the steps in the embodiments of the present disclosure are not necessarily performed in the above sequence, and may also be performed in other sequences such as reverse, parallel, and cross, and further, on the basis of the above steps, other steps may also be added by those skilled in the art, and these obvious modifications or equivalents should also be included in the protection scope of the present disclosure, and are not described herein again.
Fig. 4 is a schematic structural diagram of an embodiment of a mode switching apparatus provided in the present disclosure, and as shown in fig. 4, the apparatus 400 includes: a first display module 401 and a second display module 402. Wherein the content of the first and second substances,
a first display module 401, configured to display a first interface and play a first audio, where the first interface includes a mode switching component, and the mode switching component is in a first state corresponding to a first mode; (ii) a
A second display module 402, configured to switch from the first interface to a second interface and play a second audio in response to a trigger condition of the mode switching component being met, where the second interface includes the mode switching component, and the mode switching component is in a second state corresponding to the second mode.
Further, the first interface further includes:
one or more of a first audio control component and a first audio information display component; wherein the content of the first and second substances,
the first audio control component is used for controlling the playing of first audio;
the first audio information display component is used for receiving a trigger signal to display information related to the first audio in a first interface; wherein the related information of the first audio is displayed with a first effect.
Further, the second interface further includes:
one or more of a second audio control component, a second audio information display component, and a second audio interaction component; wherein the content of the first and second substances,
the second audio control component is used for controlling the playing of second audio;
the second audio information display component is used for receiving a trigger signal to display information related to the second audio in a second interface; wherein the related information of the second audio is displayed with a second effect;
the second audio interaction component is used for receiving a trigger signal to switch the play mode of the second audio.
Further, the first interface and the second interface further include:
a mode indication component that displays a third effect in the first interface and a fourth effect in the second interface.
Further, the second interface further includes:
and the second audio matching component is used for receiving a trigger signal to display the matching degree of a third audio and the second audio.
Further, the displaying the matching degree of the third audio and the second audio includes:
and when the matching degree of the third audio and the second audio is higher than a first matching threshold value, displaying a fifth effect.
Further, the second audio is a song, and the play mode of the second audio includes:
a follow mode and an acoustic mode.
Further, the first audio and the second audio are the same song, and the trigger condition of the mode switching component includes: the first audio is played to a preset time point.
Further, the first audio and the second audio are the same song, and the trigger condition of the mode switching component includes:
and receiving the third audio, wherein the matching degree of the third audio and the first audio is higher than a second matching threshold.
Further, the first audio and the second audio are audio of different channels of the same audio.
The apparatus shown in fig. 4 can perform the method of the embodiment shown in fig. 2-3 b, and the detailed description of this embodiment can refer to the related description of the embodiment shown in fig. 2-3 b. The implementation process and technical effect of the technical solution are described in the embodiments shown in fig. 2-3 b, and are not described herein again.
Referring now to FIG. 5, a block diagram of an electronic device 500 suitable for use in implementing embodiments of the present disclosure is shown. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 5, electronic device 500 may include a processing means (e.g., central processing unit, graphics processor, etc.) 501 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)502 or a program loaded from a storage means 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data necessary for the operation of the electronic apparatus 500 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other through a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
Generally, the following devices may be connected to the I/O interface 505: input devices 506 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 507 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, and the like; storage devices 508 including, for example, magnetic tape, hard disk, etc.; and a communication device 509. The communication means 509 may allow the electronic device 500 to communicate with other devices wirelessly or by wire to exchange data. While fig. 5 illustrates an electronic device 500 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 509, or installed from the storage means 508, or installed from the ROM 502. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing device 501.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to perform the method of any of the embodiments.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
According to one or more embodiments of the present disclosure, there is provided a mode switching method including:
displaying a first interface and playing a first audio, wherein the first interface comprises a mode switching component, and the mode switching component is in a first state corresponding to a first mode;
and responding to the condition that the trigger condition of the mode switching component is met, switching from the first interface to a second interface and playing a second audio, wherein the second interface comprises the mode switching component, and the mode switching component is in a second state corresponding to a second mode.
Further, the first interface further includes:
one or more of a first audio control component and a first audio information display component; wherein the content of the first and second substances,
the first audio control component is used for controlling the playing of first audio;
the first audio information display component is used for receiving a trigger signal to display information related to the first audio in a first interface; wherein the related information of the first audio is displayed with a first effect.
Further, the second interface further includes:
one or more of a second audio control component, a second audio information display component, and a second audio interaction component; wherein the content of the first and second substances,
the second audio control component is used for controlling the playing of second audio;
the second audio information display component is used for receiving a trigger signal to display information related to the second audio in a second interface; wherein the related information of the second audio is displayed with a second effect;
the second audio interaction component is used for receiving a trigger signal to switch the play mode of the second audio.
Further, the first interface and the second interface further include:
a mode indication component that displays a third effect in the first interface and a fourth effect in the second interface.
Further, the second interface further includes:
and the second audio matching component is used for receiving a trigger signal to display the matching degree of a third audio and the second audio.
Further, the displaying the matching degree of the third audio and the second audio includes:
and when the matching degree of the third audio and the second audio is higher than a first matching threshold value, displaying a fifth effect.
Further, the second audio is a song, and the play mode of the second audio includes: a follow mode and an acoustic mode.
Further, the first audio and the second audio are the same song, and the trigger condition of the mode switching component includes: the first audio is played to a preset time point.
Further, the first audio and the second audio are the same song, and the trigger condition of the mode switching component includes:
and receiving the third audio, wherein the matching degree of the third audio and the first audio is higher than a second matching threshold.
Further, the first audio and the second audio are audio of different channels of the same audio.
According to one or more embodiments of the present disclosure, there is provided a mode switching apparatus including:
the first display module is used for displaying a first interface and playing a first audio, wherein the first interface comprises a mode switching component, and the mode switching component is in a first state corresponding to a first mode; (ii) a
And the second display module is used for responding to the condition that the trigger condition of the mode switching component is met, switching the first interface into a second interface and playing a second audio, wherein the second interface comprises the mode switching component, and the mode switching component is in a second state corresponding to a second mode.
Further, the first interface further includes:
one or more of a first audio control component and a first audio information display component; wherein the content of the first and second substances,
the first audio control component is used for controlling the playing of first audio;
the first audio information display component is used for receiving a trigger signal to display information related to the first audio in a first interface; wherein the related information of the first audio is displayed with a first effect.
Further, the second interface further includes:
one or more of a second audio control component, a second audio information display component, and a second audio interaction component; wherein the content of the first and second substances,
the second audio control component is used for controlling the playing of second audio;
the second audio information display component is used for receiving a trigger signal to display information related to the second audio in a second interface; wherein the related information of the second audio is displayed with a second effect;
the second audio interaction component is used for receiving a trigger signal to switch the play mode of the second audio.
Further, the first interface and the second interface further include:
a mode indication component that displays a third effect in the first interface and a fourth effect in the second interface.
Further, the second interface further includes:
and the second audio matching component is used for receiving a trigger signal to display the matching degree of a third audio and the second audio.
Further, the displaying the matching degree of the third audio and the second audio includes:
and when the matching degree of the third audio and the second audio is higher than a first matching threshold value, displaying a fifth effect.
Further, the second audio is a song, and the play mode of the second audio includes: a follow mode and an acoustic mode.
Further, the first audio and the second audio are the same song, and the trigger condition of the mode switching component includes: the first audio is played to a preset time point.
Further, the first audio and the second audio are the same song, and the trigger condition of the mode switching component includes:
and receiving the third audio, wherein the matching degree of the third audio and the first audio is higher than a second matching threshold.
Further, the first audio and the second audio are audio of different channels of the same audio.
According to one or more embodiments of the present disclosure, there is provided an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the mode switching method of any one of the preceding first aspects.
According to one or more embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, characterized in that the non-transitory computer-readable storage medium stores computer instructions for causing a computer to execute the mode switching method of any one of the foregoing first aspects.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.

Claims (13)

1. A method of mode switching, comprising:
displaying a first interface and playing a first audio, wherein the first interface comprises a mode switching component, and the mode switching component is in a first state corresponding to a first mode;
and responding to the condition that the trigger condition of the mode switching component is met, switching from the first interface to a second interface and playing a second audio, wherein the second interface comprises the mode switching component, and the mode switching component is in a second state corresponding to a second mode.
2. The mode switching method of claim 1, wherein the first interface further comprises:
one or more of a first audio control component and a first audio information display component; wherein the content of the first and second substances,
the first audio control component is used for controlling the playing of first audio;
the first audio information display component is used for receiving a trigger signal to display information related to the first audio in a first interface; wherein the related information of the first audio is displayed with a first effect.
3. The method of switching modes of claim 1, wherein the second interface further comprises:
one or more of a second audio control component, a second audio information display component, and a second audio interaction component; wherein the content of the first and second substances,
the second audio control component is used for controlling the playing of second audio;
the second audio information display component is used for receiving a trigger signal to display information related to the second audio in a second interface; wherein the related information of the second audio is displayed with a second effect;
the second audio interaction component is used for receiving a trigger signal to switch the play mode of the second audio.
4. The mode switching method of claim 1, wherein the first interface and the second interface further comprise:
a mode indication component that displays a third effect in the first interface and a fourth effect in the second interface.
5. The method of switching modes of claim 1, wherein the second interface further comprises:
and the second audio matching component is used for receiving a trigger signal to display the matching degree of a third audio and the second audio.
6. The method of claim 5, wherein displaying the matching degree of the third audio and the second audio comprises:
and when the matching degree of the third audio and the second audio is higher than a first matching threshold value, displaying a fifth effect.
7. The mode switching method of claim 3, wherein the second audio is a song, and the playback mode of the second audio includes:
a follow mode and an acoustic mode.
8. The mode switching method of claim 1, wherein the first audio and the second audio are the same song, and the trigger condition of the mode switching component comprises: the first audio is played to a preset time point.
9. The mode switching method of claim 1, wherein the first audio and the second audio are the same song, and the trigger condition of the mode switching component comprises:
and receiving the third audio, wherein the matching degree of the third audio and the first audio is higher than a second matching threshold.
10. The mode switching method of claim 1, wherein the first audio and the second audio are different channels of audio of the same audio.
11. A mode switching apparatus, comprising:
the first display module is used for displaying a first interface and playing a first audio, wherein the first interface comprises a mode switching component, and the mode switching component is in a first state corresponding to a first mode; (ii) a
And the second display module is used for responding to the condition that the trigger condition of the mode switching component is met, switching the first interface into a second interface and playing a second audio, wherein the second interface comprises the mode switching component, and the mode switching component is in a second state corresponding to a second mode.
12. An electronic device, comprising:
a memory for storing computer readable instructions; and
a processor for executing the computer readable instructions such that the processor when executed implements the method of any of claims 1-10.
13. A non-transitory computer readable storage medium storing computer readable instructions which, when executed by a computer, cause the computer to perform the method of any one of claims 1-10.
CN202010812778.8A 2020-08-13 2020-08-13 Mode switching method and device and electronic equipment Pending CN112015505A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010812778.8A CN112015505A (en) 2020-08-13 2020-08-13 Mode switching method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010812778.8A CN112015505A (en) 2020-08-13 2020-08-13 Mode switching method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112015505A true CN112015505A (en) 2020-12-01

Family

ID=73504299

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010812778.8A Pending CN112015505A (en) 2020-08-13 2020-08-13 Mode switching method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112015505A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559044A (en) * 2020-12-23 2021-03-26 Oppo广东移动通信有限公司 Play switching method and device and computer readable storage medium
CN113132794A (en) * 2021-05-13 2021-07-16 北京字节跳动网络技术有限公司 Live background sound processing method, device, equipment, medium and program product
CN114900505A (en) * 2022-04-18 2022-08-12 广州市迪士普音响科技有限公司 WEB-based audio scene timing switching method, device and medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103686450A (en) * 2013-12-31 2014-03-26 广州华多网络科技有限公司 Video processing method and system
CN103870166A (en) * 2012-12-07 2014-06-18 联想(北京)有限公司 Mode switching method and device
CN105161120A (en) * 2015-08-27 2015-12-16 广州酷狗计算机科技有限公司 Original and accompanying singing switching method and apparatus
CN105183290A (en) * 2015-09-02 2015-12-23 深圳市金立通信设备有限公司 Audio playing interface operating method and terminal
CN106548792A (en) * 2015-09-17 2017-03-29 阿里巴巴集团控股有限公司 Intelligent sound box device, mobile terminal and music processing method
CN106558299A (en) * 2016-12-01 2017-04-05 广州酷狗计算机科技有限公司 The mode switching method and device of audio rendition
CN106611603A (en) * 2015-10-26 2017-05-03 腾讯科技(深圳)有限公司 Audio processing method and audio processing device
CN108121529A (en) * 2017-12-25 2018-06-05 广东小天才科技有限公司 Switching method, switching device and the terminal of audio-frequency play mode
CN109302538A (en) * 2018-12-21 2019-02-01 广州酷狗计算机科技有限公司 Method for playing music, device, terminal and storage medium
CN110097868A (en) * 2018-01-29 2019-08-06 阿里巴巴集团控股有限公司 Play the methods, devices and systems of music
CN111414147A (en) * 2020-03-26 2020-07-14 广州酷狗计算机科技有限公司 Song playing method, device, terminal and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103870166A (en) * 2012-12-07 2014-06-18 联想(北京)有限公司 Mode switching method and device
CN103686450A (en) * 2013-12-31 2014-03-26 广州华多网络科技有限公司 Video processing method and system
CN105161120A (en) * 2015-08-27 2015-12-16 广州酷狗计算机科技有限公司 Original and accompanying singing switching method and apparatus
CN105183290A (en) * 2015-09-02 2015-12-23 深圳市金立通信设备有限公司 Audio playing interface operating method and terminal
CN106548792A (en) * 2015-09-17 2017-03-29 阿里巴巴集团控股有限公司 Intelligent sound box device, mobile terminal and music processing method
CN106611603A (en) * 2015-10-26 2017-05-03 腾讯科技(深圳)有限公司 Audio processing method and audio processing device
CN106558299A (en) * 2016-12-01 2017-04-05 广州酷狗计算机科技有限公司 The mode switching method and device of audio rendition
CN108121529A (en) * 2017-12-25 2018-06-05 广东小天才科技有限公司 Switching method, switching device and the terminal of audio-frequency play mode
CN110097868A (en) * 2018-01-29 2019-08-06 阿里巴巴集团控股有限公司 Play the methods, devices and systems of music
CN109302538A (en) * 2018-12-21 2019-02-01 广州酷狗计算机科技有限公司 Method for playing music, device, terminal and storage medium
CN111414147A (en) * 2020-03-26 2020-07-14 广州酷狗计算机科技有限公司 Song playing method, device, terminal and storage medium

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112559044A (en) * 2020-12-23 2021-03-26 Oppo广东移动通信有限公司 Play switching method and device and computer readable storage medium
CN113132794A (en) * 2021-05-13 2021-07-16 北京字节跳动网络技术有限公司 Live background sound processing method, device, equipment, medium and program product
WO2022237463A1 (en) * 2021-05-13 2022-11-17 北京字节跳动网络技术有限公司 Livestreaming background sound processing method and apparatus, device, medium, and program product
CN114900505A (en) * 2022-04-18 2022-08-12 广州市迪士普音响科技有限公司 WEB-based audio scene timing switching method, device and medium
CN114900505B (en) * 2022-04-18 2024-01-30 广州市迪士普音响科技有限公司 Audio scene timing switching method, device and medium based on WEB

Similar Documents

Publication Publication Date Title
US11818424B2 (en) Method and apparatus for generating video, electronic device, and computer readable medium
CN110764671B (en) Information display method and device, electronic equipment and computer readable medium
CN112259062B (en) Special effect display method and device, electronic equipment and computer readable medium
CN112015505A (en) Mode switching method and device and electronic equipment
CN111447489A (en) Video processing method and device, readable medium and electronic equipment
US11889143B2 (en) Video file processing method and apparatus, electronic device, and computer storage medium
CN111629251B (en) Video playing method and device, storage medium and electronic equipment
CN111629151B (en) Video co-shooting method and device, electronic equipment and computer readable medium
US20240127856A1 (en) Audio processing method and apparatus, and electronic device and storage medium
CN111526411A (en) Video processing method, device, equipment and medium
WO2022193867A1 (en) Video processing method and apparatus, and electronic device and storage medium
EP4319135A1 (en) Image fusion method and apparatus, electronic device, and storage medium
CN110958481A (en) Video page display method and device, electronic equipment and computer readable medium
CN112397104B (en) Audio and text synchronization method and device, readable medium and electronic equipment
CN112069360A (en) Music poster generation method and device, electronic equipment and medium
CN113589982A (en) Resource playing method and device, electronic equipment and storage medium
CN114125551B (en) Video generation method, device, electronic equipment and computer readable medium
WO2024037480A1 (en) Interaction method and apparatus, electronic device, and storage medium
JP2023525091A (en) Image special effect setting method, image identification method, device and electronic equipment
WO2020233171A1 (en) Song list switching method, apparatus and system, terminal, and storage medium
CN115633206A (en) Media content display method, device, equipment and storage medium
CN111246242A (en) Searching method and device based on played video, application server and terminal equipment
CN115550723A (en) Multimedia information display method and device and electronic equipment
CN113885741A (en) Multimedia processing method, device, equipment and medium
CN114925274A (en) Media content playing method, device, equipment, storage medium and product

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