CN117194706A - Lyric display method and device, electronic equipment and storage medium - Google Patents

Lyric display method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117194706A
CN117194706A CN202311003490.6A CN202311003490A CN117194706A CN 117194706 A CN117194706 A CN 117194706A CN 202311003490 A CN202311003490 A CN 202311003490A CN 117194706 A CN117194706 A CN 117194706A
Authority
CN
China
Prior art keywords
media
audio
lyrics
terminal
information
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
CN202311003490.6A
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.)
Shenzhen Yingmu Technology Co ltd
Original Assignee
Shenzhen Yingmu 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 Shenzhen Yingmu Technology Co ltd filed Critical Shenzhen Yingmu Technology Co ltd
Priority to CN202311003490.6A priority Critical patent/CN117194706A/en
Publication of CN117194706A publication Critical patent/CN117194706A/en
Pending legal-status Critical Current

Links

Abstract

The application discloses a lyric display method, a lyric display device, electronic equipment and a storage medium, comprising the following steps: responding to a terminal-triggered connection operation, and establishing communication connection with the terminal; acquiring a media controller and binding the media controller with a media service based on the communication connection; when the media controller is bound with the media service, receiving audio information of the current playing audio of the terminal; based on the audio information, displaying the lyrics of the current playing audio, and the scheme realizes lyrics display in the intelligent glasses under the condition of low cost.

Description

Lyric display method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of intelligent devices, and in particular, to a lyric display method, a lyric display device, an electronic device, and a storage medium.
Background
The intelligent glasses serve as a new intelligent wearing terminal, and play a great role in various life and work scenes, for example, the intelligent glasses are applied to video entertainment scenes.
At present, the scheme for synchronizing the intelligent wearable terminal and the intelligent terminal is mainly as follows: the synchronization of music information is carried out through a customized Bluetooth protocol, or a customized development interface is adopted between the music software manufacturer and the access software, the access software is connected with an external network through wireless communication, the customized development cost is high, and the later maintenance cost is also high.
Disclosure of Invention
Based on the method, the device, the electronic equipment and the storage medium, the application provides a lyric display method, a lyric display device and a storage medium, and lyric display is realized in the intelligent glasses under the condition of low cost.
In a first aspect, an embodiment of the present application provides a lyric display method, including:
responding to a terminal-triggered connection operation, and establishing communication connection with the terminal;
acquiring a media controller and binding the media controller with a media service based on the communication connection;
when the media controller is bound with the media service, receiving audio information of the current playing audio of the terminal;
and displaying the lyrics of the current playing audio based on the audio information.
In a second aspect, an embodiment of the present application further provides a lyric display device, including:
the establishing module is used for responding to the connection operation triggered by the terminal and establishing communication connection with the terminal;
the acquisition module is used for acquiring the media controller;
a binding module for binding the media controller with a media service based on the communication connection;
the receiving module is used for receiving the audio information of the current playing audio of the terminal when the media controller is bound with the media service;
and the display module is used for displaying the lyrics of the current playing audio based on the audio information.
Optionally, in some embodiments of the present application, the display module includes:
the starting unit is used for starting the media browser;
and the display unit is used for displaying the lyrics of the current playing audio based on the audio information and the media browser.
Optionally, in some embodiments of the present application, the display unit includes:
the analysis subunit is used for analyzing the audio information in the media browser in a preset mode;
and the display subunit is used for displaying the lyrics of the current playing audio according to the analysis result.
Optionally, in some embodiments of the present application, the display subunit is specifically configured to:
determining a display area of lyrics in the intelligent wearable device;
extracting the playing progress and lyric information of the current playing audio from the analysis result;
and displaying the lyrics of the current playing audio in the display area based on the playing progress and the lyrics information.
Optionally, in some embodiments of the present application, the receiving module is specifically configured to:
registering a monitoring interface corresponding to the media controller when the media controller is bound with a media service;
and receiving the audio information of the current playing audio of the terminal based on the monitoring interface.
Optionally, in some embodiments of the present application, the acquiring module is specifically configured to:
constructing a media browser;
registering a connection interface for connecting the media browser;
when the system audio service is successfully connected through the connection interface, acquiring a media object of the media browser;
a media controller is acquired based on the media object.
Optionally, in some embodiments of the present application, a control module is further included, and the control module is specifically configured to:
acquiring a device control instruction;
determining a control event corresponding to the equipment control instruction;
and controlling the current playing audio based on the control event.
In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor, where the memory stores a computer program, and the computer program when executed by the processor causes the processor to perform the steps of the lyric display method described above.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, which when executed by a processor, causes the processor to perform the steps of the lyric display method described above.
The embodiment of the application provides a lyric display method, a device, electronic equipment and a storage medium, wherein communication connection with intelligent equipment is established in response to connection operation triggered by a terminal, then a media controller is acquired, the media controller is bound with a media service based on the communication connection, then when the media controller is bound with the media service, audio information of audio played currently by the terminal is received, and finally lyrics of the audio played currently are displayed based on the audio information. In the lyric display scheme provided by the application, the media controller is bound with the media service, and when the media controller is bound, the audio information of the audio currently played by the terminal is received so as to carry out subsequent lyric display, and synchronization of the audio information is not needed through a customized protocol, so that the cost can be reduced, namely, the lyric display in the intelligent glasses can be realized under the condition of low cost.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Wherein:
FIG. 1 is a schematic view of a lyric display method according to an embodiment of the present application;
FIG. 2 is a flowchart of a lyric display method according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a lyric display device according to an embodiment of the present application;
FIG. 4 is a schematic diagram of another structure of a lyric display device according to an embodiment of the present application
Fig. 5 is a schematic structural diagram of an electronic device provided by the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The application provides a lyric display method, a lyric display device, electronic equipment and a storage medium.
The lyric display device can be integrated in a terminal, and the terminal can be a smart phone, a tablet computer, a notebook computer, a desktop computer, an intelligent sound box, an intelligent watch or intelligent glasses, and the like, but is not limited to the smart phone, the tablet computer, the notebook computer, the desktop computer, the intelligent sound box, the intelligent watch or the intelligent glasses. The terminal and the server may be directly or indirectly connected through a wired or wireless communication manner, where the server may be an independent physical server, or may be a server cluster or a distributed system formed by multiple physical servers, or may be a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, and basic cloud computing services such as big data and artificial intelligent platforms.
For example, referring to fig. 1, the present application provides a lyric display device integrated in a smart glasses 10, when a user uses the smart glasses 10, the user establishes a communication connection between the smart glasses 10 and a mobile phone 20, such as bluetooth connection, and specifically may use a PIN code, which is generally "0000" or "1111", and a pairing code, which is currently set and used, and the pairing codes of the smart glasses 10 and the mobile phone 20 must be consistent. After the communication connection is established, the smart glasses 10 acquire their corresponding media controllers and bind the media controllers with the media services based on the bluetooth connection. When the media controller is bound with the media service, the smart glasses 10 receive audio information of the current playing audio of the mobile phone, and finally, the smart glasses 10 display lyrics of the current playing audio based on the audio information.
According to the lyric display method provided by the application, the media controller is bound with the media service, and when the media controller is bound, the audio information of the audio currently played by the terminal is received so as to carry out lyric display later, and synchronization of the audio information is not needed through a customized protocol, so that the cost can be reduced, namely, lyric display in the intelligent glasses can be realized under the condition of low cost.
The application discloses a lyric display method, which comprises the following steps: responding to a connection operation triggered by a terminal, and establishing communication connection with the terminal; acquiring a media controller and binding the media controller with a media service based on communication connection; when the media controller is bound with the media service, receiving audio information of the current playing audio of the terminal; based on the audio information, lyrics of the currently played audio are displayed.
Referring to fig. 2, fig. 2 is a flow chart of a lyric display method according to the present application. The specific flow of the lyric display method can be as follows:
101. and responding to the connection operation triggered by the terminal, and establishing communication connection with the terminal.
The terminal can be a smart phone, a tablet computer, a notebook computer, a desktop computer or a smart speaker, and the communication connection with the terminal can be Bluetooth connection or Wi-Fi connection. Among them, bluetooth connection is the most common way. The user can pair the intelligent glasses with the mobile phone through Bluetooth, so that the intelligent glasses and the mobile phone can carry out data transmission. When pairing, the user needs to first open the bluetooth function of the smart glasses, then search for available bluetooth devices on the mobile phone and select the smart glasses. Then, the mobile phone prompts the user to input the pairing code, and after the correct code is input, the user can connect the pairing code and the correct code. In addition, the smart glasses can be connected with the mobile phone through Wi-Fi. Wi-Fi is the best solution for connecting smart glasses for some phones that hardly support bluetooth. The user can realize data transmission by only connecting the intelligent glasses and the mobile phone to the same Wi-Fi network. When the mobile phone is connected, a user needs to firstly open the Wi-Fi function of the intelligent glasses, then searches the connected Wi-Fi network on the mobile phone and selects the network corresponding to the intelligent glasses.
102. The media controller is acquired and bound to the media service based on the communication connection.
The media controller (MediaController) is used to acquire media data, so that in order to acquire the audio information of the currently playing audio later, first, a local media controller needs to be acquired. After acquiring the MediaController, the MediaController is bound with the media service.
Wherein, the acquiring MediaController, mediaBrowser may be used for connecting services through a media browser (MediaBrowser), and after a structure callback with successful connection, acquire Token (pairing Token), and thereby acquire MediaController, that is, optionally, in some embodiments, the step of "acquiring media controller" may specifically include:
(11) Constructing a media browser;
(12) Registering a connection interface for connecting the media browser;
(13) When the system audio service is successfully connected through the connection interface, acquiring a media object of the media browser;
(14) A media controller is acquired based on the media object.
For example, specifically, after the MediaBrowser is built, an attribute corresponding to the advanced audio distribution protocol (Advance AudioDistribution Profile, A2 DP) is set, where advanced audio and bluetooth audio are distinguished, where bluetooth audio generally refers to audio on a bluetooth SCO link, that is, a bluetooth phone, and advanced audio refers to high quality audio transmitted on a bluetooth ACL link, that is, media audio of bluetooth music. That is, by setting the relevant attribute corresponding to the A2DP protocol, the subsequent transmission of audio data is facilitated. After the setup is completed, the connection listening interface of the MediaBrowser is registered and starts to connect to the system audio service. When the system audio service is successfully connected through the connection interface, a Session object (Session) of the MediaBrowser is acquired, and the MediaController is acquired based on the Session.
It should be noted that, session is a concept in a media session (MediaSession) framework, which standardizes a communication interface between an interface and a player in an audio and video application, and implements complete decoupling between the interface and the player. The MediaSession framework defines two important classes of media sessions and media controllers that provide a well-established technical architecture for building multimedia player applications.
The MediaSession framework mainly comprises a media browser, a media controller, a media service MediaBrowser service and a media session MediaSession, and is specifically as follows:
mediabrowser service: it has two key callback functions, onGetRoot (control connection request of client media browser, decide whether to allow connection in return value), onloadchild (media browser will be called when sending data subscription request to server, typically where the operation of asynchronously getting data is performed, then in the interface where data is sent back to media browser registration).
MediaController: working in the client, an instruction is sent to the media server through the controller, and then the callback function is set through the mediacontrollercompat callback to accept the state of the server. The MediaController needs the pairing token of the controlled end when being created, so the creation of the MediaController needs to be carried out after the browser is successfully connected.
MediaSession: the controlled end receives the instruction sent by the MediaController by setting mediasessioncompat. Session is generally created in a service. OnCreate method, and finally, a setSessionToken method is called to set a token for pairing with the controller and inform the browser that the connection service is successful. The MediaBrowser and MediaController are used by clients, and the MediaBrowser service and MediaSession are used by servers. Since the client and the server are asynchronous communications, a large number of callbacks are employed, and thus there are a large number of callbacks.
MediaBrowser: the method is used for connecting media browser Service and subscription data, and can acquire the connection state of Service and music data in a registered callback interface, and is generally created in a client. Callback means a state of controlling audio played by the mobile phone by a control instruction triggered by the user on the smart glasses, wherein the state comprises playing or pausing, next or last, and the like.
Specifically, a MediaSession is constructed by a new MediaSession (Context, string) function, in which a String may be imported with a packet name, then a pairing Token (Token) is obtained by a MediaSession.
After acquiring the MediaController, the MediaController is bound with the mediabrowser service based on the A2DP, that is, optionally, in some embodiments, the step of "when the media controller binds with the media service, receiving audio information of the audio currently played by the terminal" may specifically include:
(21) Registering a monitoring interface corresponding to the media controller when the media controller is bound with the media service;
(22) And receiving the audio information of the current playing audio of the terminal based on the monitoring interface.
103. And when the media controller is bound with the media service, receiving the audio information of the current playing audio of the terminal.
When the MediaController is bound with the mediabrowser service, a receiver mediabrowser call back is started, and the audio information of the audio played by the terminal at present is received through the mediabrowser call back.
In the embodiment of the application, the audio information comprises playing information and characteristic information; the playing information refers to a part of the currently playing audio that can be played by the speaker device, i.e., the music being played in the step. And the characteristic information refers to a part of the music file that can be presented through an interactive interface of the device, such as a display screen of the device, for example, ID3 information. The ID3 information is generally located in a number of bytes at the beginning or end of a music file, and related information such as singer, title, album name, year, or genre of the music file is added thereto. The ID3 information includes v1 version and v2 version, wherein the ID3 information of the v1 version starts with TAG characters at the end 128 bytes of the music file, followed by the music information; the v2 version is generally located at the beginning of a music file, and can store large-capacity information such as lyrics or pictures of the album.
104. Based on the audio information, lyrics of the currently played audio are displayed.
It will be appreciated that play information and feature information may be extracted from the audio information, and then lyrics of the currently played audio may be displayed based on the play information and the feature information.
For example, the media browser may be started to display lyrics of the currently playing audio based on the MediaBrowser and the audio information, that is, optionally, the step of displaying lyrics of the currently playing audio based on the audio information may specifically include:
(31) Starting a media browser;
(32) Based on the audio information and the media browser, lyrics of the currently played audio are displayed.
For example, the incidental data in the PlayBackState (i.e., the play information and the feature information) is played in the receiver mediabrowser callback, and then, based on the play information and the feature information, the lyrics of the currently playing audio are displayed, that is, optionally, in some embodiments, the step of "displaying the lyrics of the currently playing audio based on the audio information and the media browser" may specifically include:
(41) Analyzing the audio information in the media browser in a preset mode;
(42) And displaying lyrics of the current playing audio according to the analysis result.
Specifically, the original data can be queried from the mobile phone and packaged into MediaMetadata, then the MediaMetadata is returned to mediacontroller. The metadata key element specifies the attributes of the service metadata packet. The method comprises the following steps:
an identifier of each hardware function supported by the device.
Language specific areas of text strings in a package are set.
In the MediaSession framework, firstly, the client terminal receives the request through the mediabrowser service connection MediaBrowserService, mediaBrowserService, processes the related request, controls the playing state by the MediaSession, synchronizes the state to the client terminal, and finally the client terminal performs corresponding operation by the MediaController.
Further, after the audio information is analyzed, playing information and characteristic information are obtained, and then, a display area of lyrics in intelligent wearing equipment (intelligent glasses) is determined, and the intelligent glasses are taken as an example, wherein the display area can be located in a left eye area of the intelligent glasses, can be located in a right eye area of the intelligent glasses, can be located in a binocular area of the intelligent glasses, and can be specifically set according to actual conditions. The size of the display area may be adapted to the visual area, and when the display is performed, the display is performed according to the playing progress and the lyrics, that is, optionally, in some embodiments, the step of displaying the lyrics of the current playing audio according to the analysis result may specifically include:
(51) Determining a display area of lyrics in the intelligent wearable device;
(52) Extracting the playing progress of the current playing audio and lyric information from the analysis result;
(53) Based on the playing progress and the lyric information, displaying lyrics of the current playing audio in the display area.
In addition, it should be noted that, in the embodiment of the present application, the current playing audio may also be controlled by a MediaController, for example, switching to the next song or pausing playing, etc., that is, optionally, in some embodiments, the lyric display method of the present application may specifically further include:
(61) Acquiring a device control instruction;
(62) Determining a control event corresponding to the equipment control instruction;
(63) And controlling the current playing audio based on the control event.
It should be noted that embodiments of the present application control the current playback audio based on the mediatransport controls class, which allows a user to interact with his media by providing a default playback experience consisting of various buttons (including play, pause, closed captioning, etc.). In the embodiment of the application, the interaction with the currently played audio can be realized through the operation (such as tapping or touching, etc.) triggered by the intelligent glasses. Of course, the interaction with the currently playing audio may also be implemented by a control device (e.g. a handle) corresponding to the smart glasses. Interaction with the current playing audio can be achieved through gesture operation between the intelligent glasses, and setting can be conducted according to actual conditions.
Taking an operation triggered by the smart glasses (such as clicking or touching) to realize interaction with the current playing audio as an example, firstly, setting an operation corresponding to a playing event area () to tap a preset position of the smart glasses once, setting an operation corresponding to a pause event area () to press the preset position of the smart glasses for a long time, setting an operation corresponding to a last song event skip previous () to tap the preset position of the smart glasses twice, and setting an operation corresponding to a next song event skip next () to tap the preset position of the smart glasses three times. When the user performs an operation on the preset position of the intelligent glasses, the current playing audio can be controlled to execute a corresponding instruction.
In order to further understand the lyric display method of the present application, the following description is given from another angle, specifically as follows:
the lyric display scheme of the application can be realized through the target application installed in the intelligent glasses, namely, the target application is installed in the intelligent glasses in advance, and when the user actually uses the intelligent glasses, the user can establish communication connection through the mobile phone of the user through the target application. When the intelligent glasses are connected with the mobile phone, the target application acquires the media controller and binds the media controller with the media service based on the communication connection. When the media controller is bound with the media service, the target application receives the audio information of the current playing audio of the mobile phone, and finally, the target application displays the lyrics of the current playing audio based on the audio information. In addition, the target application may control the currently playing audio through the MediaController, such as switching to the next song or pausing the playing.
As described above, the present application provides a lyric display method, in response to a connection operation triggered by a terminal, establishing a communication connection with an intelligent device, then acquiring a media controller, binding the media controller with a media service based on the communication connection, then, when the media controller is bound with the media service, receiving audio information of a current playing audio of the terminal, and finally, displaying lyrics of the current playing audio based on the audio information. In the lyric display method provided by the application, the media controller is bound with the media service, and when the media controller is bound, the audio information of the audio currently played by the terminal is received so as to carry out subsequent lyric display, and synchronization of the audio information is not needed through a customized protocol, so that the cost can be reduced, namely, the lyric display in the intelligent glasses can be realized under the condition of low cost.
Accordingly, referring to fig. 3, an embodiment of the present application provides a lyric display device (hereinafter referred to as a display device) that includes an establishing module 201, an obtaining module 202, a binding module 203, a receiving module 204, and a display module 205, which is specifically as follows:
the establishing module 201 is configured to establish a communication connection with a terminal in response to a connection operation triggered by the terminal.
An acquisition module 202 is configured to acquire a media controller.
The media browser (MediaBrowser) may acquire MediaController, mediaBrowser a connection service, and after a successful connection callback, acquire Token (pairing Token), and thereby acquire MediaController.
Optionally, in some embodiments, the acquisition module 202 may be specifically configured to: constructing a media browser; registering a connection interface for connecting the media browser; when the system audio service is successfully connected through the connection interface, acquiring a media object of the media browser; a media controller is acquired based on the media object.
A binding module 203 for binding the media controller with the media service based on the communication connection.
And the receiving module 204 is used for receiving the audio information of the current playing audio of the terminal when the media controller is bound with the media service.
It will be appreciated that play information and feature information may be extracted from the audio information, and then lyrics of the currently played audio may be displayed based on the play information and the feature information.
For example, a media browser may be launched to display lyrics of the currently playing audio based on the MediaBrowser and the audio information.
Optionally, in some embodiments, the receiving module 204 may specifically be configured to: registering a monitoring interface corresponding to the media controller when the media controller is bound with the media service; and receiving the audio information of the current playing audio of the terminal based on the monitoring interface.
The display module 205 is configured to display lyrics of the currently played audio based on the audio information.
For example, incidental data in the state PlayBackState (i.e., play information and feature information) is played in the receiver mediabrowser callback, and then lyrics of the currently played audio are displayed based on the play information and the feature information.
Optionally, in some embodiments, the display module 205 may specifically include:
the starting unit is used for starting the media browser;
and the display unit is used for displaying lyrics of the current playing audio based on the audio information and the media browser.
Optionally, in some embodiments, the display unit may specifically include:
the analysis subunit is used for analyzing the audio information in the media browser in a preset mode;
and the display subunit is used for displaying the lyrics of the current playing audio according to the analysis result.
Optionally, in some embodiments, the display subunit may be specifically configured to: determining a display area of lyrics in the intelligent wearable device; extracting the playing progress of the current playing audio and lyric information from the analysis result; based on the playing progress and the lyric information, displaying lyrics of the current playing audio in the display area.
Optionally, in some embodiments, referring to fig. 4, the display device of the present application may specifically further include a control module 206, where the control module 206 may specifically be configured to: acquiring a device control instruction; determining a control event corresponding to the equipment control instruction; and controlling the current playing audio based on a control event.
It should be noted that embodiments of the present application control the current playback audio based on the mediatransport controls class, which allows a user to interact with his media by providing a default playback experience consisting of various buttons (including play, pause, closed captioning, etc.). In the embodiment of the application, the interaction with the currently played audio can be realized through the operation (such as tapping or touching, etc.) triggered by the intelligent glasses. Of course, the interaction with the currently playing audio may also be implemented by a control device (e.g. a handle) corresponding to the smart glasses. Interaction with the current playing audio can be achieved through gesture operation between the intelligent glasses, and setting can be conducted according to actual conditions.
Taking an operation triggered by the smart glasses (such as clicking or touching) to realize interaction with the current playing audio as an example, firstly, setting an operation corresponding to a playing event area () to tap a preset position of the smart glasses once, setting an operation corresponding to a pause event area () to press the preset position of the smart glasses for a long time, setting an operation corresponding to a last song event skip previous () to tap the preset position of the smart glasses twice, and setting an operation corresponding to a next song event skip next () to tap the preset position of the smart glasses three times. When the user performs an operation on the preset position of the intelligent glasses, the current playing audio can be controlled to execute a corresponding instruction.
As described above, the present application provides a lyric display device, in which a communication connection with an intelligent device is established in response to a connection operation triggered by a terminal by a setup module 201, then a module 202 is acquired to acquire a media controller, a binding module 203 binds the media controller with a media service based on the communication connection, then a receiving module 204 receives audio information of a currently played audio of the terminal when the media controller is bound with the media service, and finally a display module 205 displays lyrics of the currently played audio based on the audio information. In the lyric display method provided by the application, the media controller is bound with the media service, and when the media controller is bound, the audio information of the audio currently played by the terminal is received so as to carry out subsequent lyric display, and synchronization of the audio information is not needed through a customized protocol, so that the cost can be reduced, namely, the lyric display in the intelligent glasses can be realized under the condition of low cost.
In addition, the application further provides an electronic device, as shown in fig. 5, which shows a schematic structural diagram of the electronic device according to the application, specifically: the electronic device may include one or more processing cores 'processors 301, one or more computer-readable storage media's memory 302, power supply 303, and input unit 304, among other components. It will be appreciated by those skilled in the art that the electronic device structure shown in fig. 5 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components. Wherein:
the processor 301 is a control center of the electronic device, connects various parts of the entire electronic device using various interfaces and lines, and performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 302, and calling data stored in the memory 302, thereby performing overall monitoring of the electronic device. Optionally, processor 301 may include one or more processing cores; preferably, the processor 301 may integrate an application processor and a modem processor, wherein the application processor primarily handles operating systems, user interfaces, applications, etc., and the modem processor primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 301.
The memory 302 may be used to store software programs and modules, and the processor 301 executes various functional applications and data processing by executing the software programs and modules stored in the memory 302. The memory 302 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the electronic device, etc. In addition, memory 302 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 302 may also include a memory controller to provide the processor 301 with access to the memory 302.
The electronic device further comprises a power supply 303 for powering the various components, preferably the power supply 303 is logically connected to the processor 301 by a power management system, whereby the functions of managing charging, discharging, and power consumption are performed by the power management system. The power supply 303 may also include one or more of any components, such as a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The electronic device may further comprise an input unit 304, which input unit 304 may be used for receiving input digital or character information and for generating keyboard, mouse, joystick, optical or trackball signal inputs in connection with user settings and function control.
Although not shown, the electronic device may further include a display unit or the like, which is not described herein. In particular, in this embodiment, the processor 301 in the electronic device loads executable files corresponding to the processes of one or more application programs into the memory 302 according to the following instructions, and the processor 301 executes the application programs stored in the memory 302, so as to implement various functions as follows:
responding to a connection operation triggered by a terminal, and establishing communication connection with the terminal; acquiring a media controller and binding the media controller with a media service based on communication connection; when the media controller is bound with the media service, receiving audio information of the current playing audio of the terminal; based on the audio information, lyrics of the currently played audio are displayed.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
In the embodiment of the application, in response to the connection operation triggered by the terminal, communication connection with the intelligent equipment is established, then the media controller is acquired, the media controller and the media service are bound based on the communication connection, then when the media controller and the media service are bound, the audio information of the current playing audio of the terminal is received, and finally, the lyrics of the current playing audio are displayed based on the audio information. In the lyric display method provided by the application, the media controller is bound with the media service, and when the media controller is bound, the audio information of the audio currently played by the terminal is received so as to carry out subsequent lyric display, and synchronization of the audio information is not needed through a customized protocol, so that the cost can be reduced, namely, the lyric display in the intelligent glasses can be realized under the condition of low cost.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of the various methods of the above embodiments may be performed by instructions, or by instructions controlling associated hardware, which may be stored in a computer-readable storage medium and loaded and executed by a processor.
To this end, the present application provides a storage medium having stored therein a plurality of instructions capable of being loaded by a processor to perform the steps of any of the lyric display methods provided by the present application. For example, the instructions may perform the steps of:
responding to a connection operation triggered by a terminal, and establishing communication connection with the terminal; acquiring a media controller and binding the media controller with a media service based on communication connection; when the media controller is bound with the media service, receiving audio information of the current playing audio of the terminal; based on the audio information, lyrics of the currently played audio are displayed.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The steps in any lyric display method provided by the present application can be executed due to the instructions stored in the storage medium, so that the beneficial effects of any lyric display method provided by the present application can be achieved, and detailed descriptions of the foregoing embodiments are omitted herein.
According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions to cause the electronic device to perform the methods provided in the various alternative implementations described above.
The foregoing has described in detail a lyric display method, apparatus, electronic device and storage medium, and specific examples have been applied to illustrate the principles and embodiments of the present application, and the above examples are only for aiding in understanding the method and core idea of the present application; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, the present description should not be construed as limiting the present application.

Claims (10)

1. A lyric display method, comprising:
responding to a terminal-triggered connection operation, and establishing communication connection with the terminal;
acquiring a media controller and binding the media controller with a media service based on the communication connection;
when the media controller is bound with the media service, receiving audio information of the current playing audio of the terminal;
and displaying the lyrics of the current playing audio based on the audio information.
2. The method of claim 1, wherein the displaying lyrics of the currently playing audio based on the audio information comprises:
starting a media browser;
and displaying the lyrics of the current playing audio based on the audio information and the media browser.
3. The method of claim 2, wherein displaying the lyrics of the currently playing audio based on the audio information and a media browser comprises:
analyzing the audio information in the media browser in a preset mode;
and displaying the lyrics of the current playing audio according to the analysis result.
4. The method of claim 3, wherein displaying the lyrics of the currently played audio according to the parsing result comprises:
determining a display area of lyrics in the intelligent wearable device;
extracting the playing progress and lyric information of the current playing audio from the analysis result;
and displaying the lyrics of the current playing audio in the display area based on the playing progress and the lyrics information.
5. The method according to any one of claims 1 to 4, wherein the receiving audio information of the audio currently played by the terminal when the media controller binds with the media service comprises:
registering a monitoring interface corresponding to the media controller when the media controller is bound with a media service;
and receiving the audio information of the current playing audio of the terminal based on the monitoring interface.
6. The method of any of claims 1 to 4, wherein the acquiring a media controller comprises:
constructing a media browser;
registering a connection interface for connecting the media browser;
when the system audio service is successfully connected through the connection interface, acquiring a media object of the media browser;
a media controller is acquired based on the media object.
7. The method according to any one of claims 1 to 4, further comprising:
acquiring a device control instruction;
determining a control event corresponding to the equipment control instruction;
and controlling the current playing audio based on the control event.
8. A lyric display device, comprising:
the establishing module is used for responding to the connection operation triggered by the terminal and establishing communication connection with the terminal;
the acquisition module is used for acquiring the media controller;
a binding module for binding the media controller with a media service based on the communication connection;
the receiving module is used for receiving the audio information of the current playing audio of the terminal when the media controller is bound with the media service;
and the display module is used for displaying the lyrics of the current playing audio based on the audio information.
9. A computer readable storage medium storing a computer program which, when executed by a processor, causes the processor to perform the steps of the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method of any of claims 1 to 7.
CN202311003490.6A 2023-08-09 2023-08-09 Lyric display method and device, electronic equipment and storage medium Pending CN117194706A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311003490.6A CN117194706A (en) 2023-08-09 2023-08-09 Lyric display method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311003490.6A CN117194706A (en) 2023-08-09 2023-08-09 Lyric display method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117194706A true CN117194706A (en) 2023-12-08

Family

ID=88998729

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311003490.6A Pending CN117194706A (en) 2023-08-09 2023-08-09 Lyric display method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117194706A (en)

Similar Documents

Publication Publication Date Title
CN104796743B (en) Content item display system, method and device
CN105957530A (en) Speech control method, device and terminal equipment
US9055193B2 (en) System and method of a remote conference
KR20160130288A (en) A lock screen method and mobile terminal
CN105357562A (en) Information processing method and terminal
CN109688475A (en) Video playing jump method, system and computer readable storage medium
JP6615997B2 (en) Synchronization of server-side keyboard layout and client-side keyboard layout in virtual sessions
KR20220090411A (en) Method, apparatus and device of live game broadcasting
US8651951B2 (en) Game processing server apparatus
CN106470146A (en) The method and apparatus that instant messaging applicating Chinese is originally converted to voice
CN109905629A (en) Method, apparatus, medium and the equipment of document sharing are realized when audio/video conference
CN111193960A (en) Video processing method and device, electronic equipment and computer readable storage medium
CN102065340B (en) System and method for implementing multimedia synchronous interaction
CN113741762A (en) Multimedia playing method, device, electronic equipment and storage medium
WO2024060559A1 (en) Method and apparatus for processing bullet chats in interactive fiction
CN112086082A (en) Voice interaction method for karaoke on television, television and storage medium
WO2015063055A1 (en) Method and system for providing access to auxiliary information
CN111881005B (en) Information display method, device, equipment and storage medium
WO2020233171A1 (en) Song list switching method, apparatus and system, terminal, and storage medium
CN113676761B (en) Multimedia resource playing method and device and main control equipment
US20170279749A1 (en) Modular Communications
CN117194706A (en) Lyric display method and device, electronic equipment and storage medium
CN113282268B (en) Sound effect configuration method and device, storage medium and electronic equipment
CN115225649A (en) Data synchronization method and device and electronic equipment
CN114827701A (en) Multimedia information interaction method and device, electronic equipment and storage medium

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