CN111107283B - Information display method, electronic equipment and storage medium - Google Patents

Information display method, electronic equipment and storage medium Download PDF

Info

Publication number
CN111107283B
CN111107283B CN201911195204.4A CN201911195204A CN111107283B CN 111107283 B CN111107283 B CN 111107283B CN 201911195204 A CN201911195204 A CN 201911195204A CN 111107283 B CN111107283 B CN 111107283B
Authority
CN
China
Prior art keywords
information
electronic equipment
current
electronic device
preset
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.)
Active
Application number
CN201911195204.4A
Other languages
Chinese (zh)
Other versions
CN111107283A (en
Inventor
李凡智
刘旭国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201911195204.4A priority Critical patent/CN111107283B/en
Publication of CN111107283A publication Critical patent/CN111107283A/en
Application granted granted Critical
Publication of CN111107283B publication Critical patent/CN111107283B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/278Subtitling
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/26Speech to text systems

Abstract

The embodiment of the application discloses an information display method, which comprises the following steps: determining the current working state of the electronic equipment; if the current working state of the electronic equipment is a mute state, acquiring audio data information carried in current playing information of the electronic equipment; and converting the audio data information to obtain target text information, and displaying the target text information at a preset position to obtain a target subtitle. The embodiment of the application also provides the electronic equipment and the storage medium.

Description

Information display method, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to an information display method, an electronic device, and a storage medium.
Background
Along with the rapid development of scientific technology, electronic equipment is more and more widely applied, and has great influence on the work, life, study and entertainment of people. People can use the electronic equipment to participate in network conferences, watch various videos and the like. However, subtitles are not usually set in some web conferences or some live videos, which results in poor user experience of people participating in the conferences or users watching the videos, and in order to solve the problem of poor user experience, subtitles are usually configured in advance in the prior art to improve the user experience effect.
However, in the prior art, the subtitles need to be preconfigured, and the preconfigured subtitles need to be manually opened by the user, so that the whole operation process is relatively complex, and the intelligent degree of the electronic device is relatively low.
Content of application
In order to solve the above technical problems, embodiments of the present application desirably provide an information display method, an electronic device, and a storage medium, so as to solve the problems in the prior art that subtitles need to be preconfigured, and the preconfigured subtitles need to be manually opened by a user, simplify a processing procedure of displaying the subtitles, and improve an intelligent degree of the electronic device.
The technical scheme of the application is realized as follows:
in a first aspect, an information display method, the method comprising:
determining the current working state of the electronic equipment;
if the current working state of the electronic equipment is a mute state, acquiring audio data information carried in current playing information of the electronic equipment;
and converting the audio data information to obtain target text information, and displaying the target text information at a preset position to obtain a target subtitle.
Optionally, before determining the current operating state of the electronic device, the method further includes:
acquiring environment information of the current environment of the electronic equipment;
and if the environmental information meets the preset environmental conditions, setting the current working state of the electronic equipment to be the mute state.
Optionally, the obtaining of the environmental information of the current environment of the electronic device includes:
acquiring noise information of the current environment of the electronic equipment; wherein the environmental information includes the noise information;
correspondingly, if the environmental information meets the preset environmental condition, setting the current working state of the electronic device to be the mute state, including:
if the noise information is larger than a preset noise threshold value, setting the current working state of the electronic equipment to be the mute state; wherein the predetermined environmental condition comprises the predetermined noise threshold.
Optionally, the obtaining environmental information of the current environment of the electronic device further includes:
acquiring the current position of the electronic equipment; wherein the environment information comprises a current location of the electronic device;
correspondingly, if the environmental information meets the preset environmental condition, controlling the electronic device to be in a mute state, including:
if the current position of the electronic equipment belongs to a preset position, controlling the electronic equipment to be in a mute state; wherein the preset environmental condition comprises the preset location.
Optionally, the obtaining of the environmental information of the current environment of the electronic device includes:
determining a relationship between the electronic equipment and a current user of the electronic equipment; the current environment information comprises the relationship between the electronic equipment and the current user of the electronic equipment;
correspondingly, if the current environment meets the preset environment condition, controlling the electronic device to be in a mute state, including:
and if the relation between the electronic equipment and the current user of the electronic equipment meets a preset environmental condition, controlling the electronic equipment to be in a mute state.
Optionally, the determining a relationship between the electronic device and a current user of the electronic device includes:
detecting distance information between the electronic equipment and a current user; the relationship between the electronic equipment and the current user of the electronic equipment comprises distance information between the electronic equipment and the current user;
correspondingly, if the relationship between the electronic device and the current user of the electronic device meets a preset environmental condition, controlling the electronic device to be in a mute state includes:
if the distance information is larger than or equal to a preset distance threshold, controlling the electronic equipment to be in a mute state; wherein the preset environmental condition comprises the preset distance threshold.
Optionally, if the current working state of the electronic device is a mute state, acquiring audio data information carried in the current playing information of the electronic device includes:
if the current working state of the electronic equipment is the mute state, detecting subtitle information carried in the current playing information;
and if the subtitle information is not carried in the current playing information, acquiring the audio data information carried in the current playing information.
Optionally, the converting the audio data information to obtain target text information, and displaying the target text information at a preset position to obtain a target subtitle includes:
determining reference language information corresponding to the audio data information;
performing character conversion on the audio data information to obtain reference character information corresponding to the reference language information;
acquiring target language information corresponding to the target subtitles;
translating the reference character information into the target character information corresponding to the target language information;
and displaying the target text information at the preset position to obtain the target caption.
Optionally, the converting the audio data information to obtain target text information, and displaying the target text information at a preset position to obtain a target subtitle further includes:
and storing the target character information according to the time sequence of obtaining the target character information.
In a second aspect, an electronic device, the electronic device comprising: a processor, a memory, and a communication bus, wherein:
the memory to store executable instructions;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is configured to execute the information display program stored in the memory, and implement the information display method according to any one of the above.
In a third aspect, a storage medium has stored thereon an information display program which, when executed by a processor, implements the steps of the information display method as in any one of the above.
The embodiment of the application provides an information display method, an electronic device and a storage medium, wherein a current working state of the electronic device is determined, if the current working state of the electronic device is a mute state, audio data information in current playing information of the electronic device is obtained, the audio data information is converted to obtain target character information, and the target character information is displayed at a preset position to obtain a target caption. Therefore, when the electronic equipment with the current playing information carrying the audio information is in a mute state, the corresponding audio information is automatically converted into the corresponding target character information and displayed in a subtitle form, the problems that in the prior art, the subtitles need to be pre-configured and a user needs to manually open the pre-configured subtitles are solved, the processing process of subtitle display is simplified, and the intelligent degree of the electronic equipment is improved.
Drawings
Fig. 1 is a schematic flowchart of an information display method according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another information display method according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another information display method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of an information display method according to another embodiment of the present application;
fig. 5 is a schematic flowchart of another information display method according to another embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
An embodiment of the present application provides an information display method, which is applied to an electronic device and shown in fig. 1, and includes the following steps:
step 101, determining the current working state of the electronic equipment.
In this embodiment, the electronic device may be a device capable of installing a video or audio player, and further, the electronic device may further have a function of connecting to an internet, for example, may be a desktop computer, a notebook computer, a tablet computer, a vehicle-mounted computer, a smart phone, a television, or the like. The operating state of the electronic device may refer to a playing state when video or audio information is played, and may include, for example, a voice playing state, an earphone inserting state, a mute state, and the like.
And 102, if the current working state of the electronic equipment is a mute state, acquiring audio data information carried in the current playing information of the electronic equipment.
In the embodiment of the application, the current working state of the electronic device may be switched and set by a user according to an actual application situation, or the electronic device may be automatically switched according to an application scenario. The current playing information of the electronic device may be video information carrying audio data information, for example, a video telephone, a played television program, a played video, or the like; the information currently played by the electronic device may also include only audio data information, which may be, for example, a voice telephone, a song, etc.
And 103, converting the audio data information to obtain target text information, and displaying the target text information at a preset position to obtain a target subtitle.
In the embodiment of the present application, audio data information is subjected to conversion processing for converting audio into text, and at this time, real-time audio text conversion processing is generally adopted, that is, which audio data information is currently played, text corresponding to the audio data information is converted. The preset position may be a preset position at which the target text information is displayed. When the target text information is displayed at the preset position to obtain the target caption, the target caption can be displayed in a sentence-by-sentence manner, namely, when the target caption is played, the first character of a certain sentence is translated firstly and is displayed at the preset position until the last character of the sentence is translated, translated and obtained and displayed, so that the corresponding target caption is obtained. In some application scenarios, if the electronic device has a projection function or is connected to a projection device, and the projection device is in operation, the target subtitles obtained correspondingly may be displayed in the projection area directly through the electronic device or displayed in the corresponding projection area through projection performed by the projection device. It should be noted that, when the user uses the device, the user can correspondingly adjust or set the preset position for displaying the target text information according to the actual application situation. The font, and/or font size, and/or text color of the target subtitle, etc., the user may also perform corresponding settings according to the preference or actual application scene.
The embodiment of the application provides an information display method, which includes the steps of determining the current working state of electronic equipment, if the current working state of the electronic equipment is in a mute state, obtaining audio data information in current playing information of the electronic equipment, carrying out conversion processing on the audio data information to obtain target character information, and displaying the target character information at a preset position to obtain a target subtitle. Therefore, when the electronic equipment with the current playing information carrying the audio information is in a mute state, the corresponding audio information is automatically converted into the corresponding target character information and displayed in a subtitle form, the problems that in the prior art, the subtitles need to be pre-configured and a user needs to manually open the pre-configured subtitles are solved, the processing process of subtitle display is simplified, and the intelligent degree of the electronic equipment is improved.
Based on the foregoing embodiments, an embodiment of the present application provides an information display method, which is applied to an electronic device and shown in fig. 2, and includes the following steps:
step 201, obtaining environment information of the current environment of the electronic device.
In the embodiment of the application, the obtaining of the environmental information of the current environment of the electronic device may be to determine an application scenario of the electronic device, and the environmental information of the current environment of the electronic device may include a current location of the electronic device, such as in a meeting room, a user's home, or some public places; the method can also comprise the steps of using the current users of the electronic equipment, the number of the users, the distance relationship between the users and the electronic equipment and the like; but also noise information of the current environment. It should be noted that, the steps 201 to 205 are only executed when the electronic device is currently playing the current playing information carrying the audio data information. Taking the example that the user is currently participating in the video teleconference by using the electronic device as an example, the environment information of the current environment of the electronic device, for example, the position where the electronic device is located, may be detected as a conference room.
Step 202, if the environmental information meets the preset environmental condition, setting the current working state of the electronic device to be a mute state.
In the embodiment of the application, the preset environmental condition is a condition for switching the current working state of the electronic device to the mute state, and the preset environmental condition may be preset by an electronic device developer according to general requirements of a large number of users, or set by the user according to the actual use condition of the user, or obtained by the user through modification or supplementation based on the preset of the electronic device developer in some application scenarios. For example, when the preset environmental condition is that the electronic device is in a meeting room, the current working state of the electronic device is set to be a mute state, and since it is determined that the environmental information of the environment of the electronic device is in the meeting room, the preset environmental condition is met, the current working state of the electronic device is switched and set to be the mute state. It should be noted that, in some application scenarios, if the electronic device is already in the mute state, it is not necessary to switch the electronic device to the mute state again.
And step 203, determining the current working state of the electronic equipment.
In this embodiment of the application, in some application scenarios, after the electronic device executes step 202, step 203 may be selected not to be executed, and the content of the audio data information carried in the current playing information of the electronic device is directly selected and executed in step 204. Step 203 is performed to further determine whether the switching operation for switching the operating state of the electronic device to the mute state is successful.
And 204, if the current working state of the electronic equipment is a mute state, acquiring audio data information carried in the current playing information of the electronic equipment.
In the embodiment of the application, if the current working state of the electronic device is a mute state, the corresponding audio data information is acquired from the current video teleconference.
And step 205, converting the audio data information to obtain target text information, and displaying the target text information at a preset position to obtain a target subtitle.
In the embodiment of the application, the acquired audio data information is subjected to real-time character conversion processing, corresponding target character information is obtained through conversion, and the target caption is obtained through display at a preset position.
In other embodiments of the present application, step 201 may be implemented by the following step a 1:
step a1, acquiring noise information of the current environment of the electronic equipment.
Wherein the environmental information includes noise information.
In this application embodiment, noise information of an environment where the electronic device is currently located may be acquired by using a noise sensor having a communication link with the electronic device, and the corresponding noise sensor may be disposed in the electronic device or may exist independently.
Accordingly, step 202 may be implemented by the following step b 1:
and b1, if the noise information is larger than the preset noise threshold, setting the current working state of the electronic equipment to be a mute state.
Wherein the predetermined environmental condition comprises a predetermined noise threshold.
In the embodiment of the present application, the preset noise threshold may be an empirical value obtained through a large number of experiments, and may be corrected and modified according to an actual application scenario, or may be set by the user according to an actual application situation.
In other embodiments of the present application, step 201 may also be implemented by the following step a 2:
and step a2, acquiring the current position of the electronic equipment.
Wherein the environment information comprises a current location of the electronic device.
In the embodiment of the present application, the current position of the electronic device may be acquired by a positioning sensor or positioning software in the electronic device.
Accordingly, step 202 may be implemented by the following step b 2:
and b2, if the current position of the electronic equipment belongs to the preset position, controlling the electronic equipment to be in a mute state.
Wherein the predetermined environmental condition includes a predetermined location.
In the embodiment of the present application, the preset position may be preset by a developer, and a corresponding user may perform corresponding modification or adjustment, but may also be determined by the user according to an actual application scenario.
In other embodiments of the present application, step 201 may also be implemented by the following step a 3:
step a3, determining the relationship between the electronic device and the current user of the electronic device.
The current environment information comprises the relationship between the electronic equipment and the current user of the electronic equipment.
In this embodiment of the present application, a relationship between an electronic device and a current user of the electronic device includes: the electronic equipment acquires the number of users in front of a display screen of the electronic equipment through the camera, or the electronic equipment adopts a current user image through the camera, or the distance relationship between the users and the electronic equipment is determined through the camera or the distance sensor, and the like.
Accordingly, step 202 may be implemented by the following step b 3:
and b3, if the relation between the electronic equipment and the current user of the electronic equipment meets the preset environmental condition, controlling the electronic equipment to be in a mute state.
In this embodiment of the application, when the relationship between the electronic device and the current user of the electronic device is the user number, the corresponding preset environmental condition may be a user number threshold, for example, when the user number threshold is 2, that is, when the user number is 2 or greater than 2, the electronic device is controlled to be in a mute state; when the relation between the electronic equipment and the current user of the electronic equipment is to acquire the current user image, the corresponding preset environmental condition can be a target user image, and the target user is an image of an old user or an image of a user with hearing impairment; when the relationship between the electronic equipment and the current user of the electronic equipment is the distance relationship between the user and the electronic equipment determined by the camera or the distance sensor, the corresponding preset environmental condition is a preset distance threshold.
In the embodiment of the present application, step a3 may be implemented by the following step a 31:
step a31, detecting distance information between the electronic equipment and the current user.
The relationship between the electronic equipment and the current user of the electronic equipment comprises distance information between the electronic equipment and the current user.
Accordingly, step b3 may be implemented by the following step b 31:
and b31, if the distance information is greater than or equal to the preset distance threshold, controlling the electronic equipment to be in a mute state.
Wherein the preset environmental condition comprises a preset distance threshold.
It should be further noted that, when determining the current environmental information of the electronic device, the environmental information may further include any two or all of the information in steps a1, a2, and a3, and when the corresponding preset environmental condition is a combination, a part of the preset environmental conditions is satisfied, that is, the current operating state of the electronic device is switchable to a mute state, or all of the preset environmental conditions are satisfied, that is, the preset environmental condition may be, for example, when the environmental information includes steps a1 and a 2: if at least one of the step b1 and the step b2 is satisfied, the current working state of the electronic device can be switched to a mute state.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
The embodiment of the application provides an information display method, which includes the steps of determining the current working state of electronic equipment, if the current working state of the electronic equipment is in a mute state, obtaining audio data information in current playing information of the electronic equipment, carrying out conversion processing on the audio data information to obtain target character information, and displaying the target character information at a preset position to obtain a target subtitle. Therefore, when the electronic equipment with the current playing information carrying the audio information is in a mute state, the corresponding audio information is automatically converted into the corresponding target character information and displayed in a subtitle form, the problems that in the prior art, the subtitles need to be pre-configured and a user needs to manually open the pre-configured subtitles are solved, the processing process of subtitle display is simplified, and the intelligent degree of the electronic equipment is improved.
Based on the foregoing embodiments, an embodiment of the present application provides an information display method, which is applied to an electronic device and shown in fig. 3, and includes the following steps:
step 301, obtaining environment information of the current environment of the electronic device.
Step 302, if the environmental information meets the preset environmental condition, setting the current working state of the electronic device to be a mute state.
Step 303, determining the current working state of the electronic device.
And step 304, if the current working state of the electronic equipment is a mute state, acquiring audio data information carried in the current playing information of the electronic equipment.
In other embodiments of the present application, step 304 may be specifically implemented by the following steps:
step 304a, if the current working state of the electronic device is a mute state, detecting the subtitle information carried in the current playing information.
And step 304b, if the current playing information does not carry the subtitle information, acquiring the audio data information carried in the current playing information.
In the embodiment of the present application, if the current playing information carries subtitle information, the subtitle information is directly displayed when the current working state of the electronic device is a mute state, or the subtitle information is displayed no matter what working state the electronic device is in, and correspondingly, the subtitle information may be preset by a current playing information provider, or may be converted and stored in real time by using the scheme of the present application when the current playing information is played before.
Step 305, converting the audio data information to obtain target text information, and displaying the target text information at a preset position to obtain a target subtitle.
In other embodiments of the present application, as shown in fig. 4, step 305 may also be implemented by the following steps:
and step 305a, determining reference language information corresponding to the audio data information.
In this embodiment of the application, for example, the reference language information corresponding to the obtained audio data information may be english.
Step 305b, performing character conversion on the audio data information to obtain reference character information corresponding to the reference language information.
In the embodiment of the application, when the audio data information is subjected to text conversion, the audio data information can be converted into text information of a language corresponding to the audio data information.
And step 305c, acquiring target language information corresponding to the target subtitles.
In the embodiment of the present application, the target language information corresponding to the target subtitle may be set by the user. For example, the target language information corresponding to the target subtitle set by the user may be chinese. It should be noted that, the target language information may be set with at least one language information, and when the target language information includes at least one language information, one of the target language information may be the same as or different from the reference language information. When the target language information is a language information, the target language information may be the same as or different from the reference language information.
And 305d, translating the reference character information into target character information corresponding to the target language information.
In the embodiment of the application, English character information corresponding to the audio data information can be converted into Chinese characters, so that Chinese character information corresponding to the audio data information can be obtained. It should be noted that, in some application scenarios, when the target language information is different from the reference language information, the audio data information may be directly translated into the target text information corresponding to the target language information, and it is not necessary to translate the text information corresponding to the reference language information into the target text information corresponding to the target language information after converting the audio data information into the text information corresponding to the reference language information.
And 305e, displaying the target text information at a preset position to obtain a target subtitle.
In this embodiment of the application, in some application scenarios, when the user wants to display the target text information, the reference language text information and the target text information may be displayed correspondingly and simultaneously. And displaying the Chinese character information corresponding to the audio data information at a preset position, so as to obtain the target caption.
It should be noted that, in some application scenarios, for example, when the reference language information corresponding to the audio data information is the same as the target language information, the audio data information may be translated into the text information of some other languages while displaying the target text information corresponding to the target language information of the audio data information, and the text information of the other languages may be displayed while displaying the target text information, for example, when the reference language information corresponding to the audio data information is chinese, and the target language information is chinese and english, the audio data information may be subjected to text conversion and translation to obtain the target text information including chinese text content and english text content, and the chinese text content and the english text content may be displayed at the preset position.
In other embodiments of the present application, as shown in fig. 5, after step 305e, the electronic device may further perform the following steps:
and step 306, storing the target character information according to the time sequence of obtaining the target character information.
In the embodiment of the application, the obtained target text information is stored according to the time sequence of translation, so that the subsequent use does not need to translate again, the consumption of central processing unit resources of the electronic equipment is reduced, and even when the conference content is to be searched when a video teleconference is not recorded, for example, in a video teleconference, the searching can be realized according to the stored target text information. It is noted that in some application scenarios, step 306 may also be performed after step 305.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
The embodiment of the application provides an information display method, which includes the steps of determining the current working state of electronic equipment, if the current working state of the electronic equipment is in a mute state, obtaining audio data information in current playing information of the electronic equipment, carrying out conversion processing on the audio data information to obtain target character information, and displaying the target character information at a preset position to obtain a target subtitle. Therefore, when the electronic equipment with the current playing information carrying the audio information is in a mute state, the corresponding audio information is automatically converted into the corresponding target character information and displayed in a subtitle form, the problems that in the prior art, the subtitles need to be pre-configured and a user needs to manually open the pre-configured subtitles are solved, the processing process of subtitle display is simplified, and the intelligent degree of the electronic equipment is improved.
Based on the foregoing embodiments, an embodiment of the present application provides an electronic device, which may be applied to the information display method provided in the embodiments corresponding to fig. 1 to 5, and as shown in fig. 6, the electronic device 4 may include: a processor 41, a memory 42, and a communication bus 43, wherein:
a memory 42 for storing executable instructions;
a communication bus 43 for implementing a communication connection between the processor 41 and the memory 42;
a processor 41 for executing the information display program stored in the memory 42 to implement the steps of:
determining the current working state of the electronic equipment;
if the current working state of the electronic equipment is a mute state, acquiring audio data information carried in current playing information of the electronic equipment;
and converting the audio data information to obtain target character information, and displaying the target character information at a preset position to obtain a target caption.
In other embodiments of the present application, before determining the current operating state of the electronic device, the processor is further configured to:
acquiring environmental information of the current environment of the electronic equipment;
and if the environmental information meets the preset environmental conditions, setting the current working state of the electronic equipment to be a mute state.
In other embodiments of the present application, the processor executes the environment information of the current environment where the electronic device is located to implement the following steps:
acquiring noise information of the current environment of the electronic equipment; wherein the environmental information comprises noise information;
correspondingly, if the environmental information satisfies the preset environmental condition, the current working state of the electronic device is set to be a mute state, including:
if the noise information is larger than a preset noise threshold value, setting the current working state of the electronic equipment to be a mute state; wherein the predetermined environmental condition comprises a predetermined noise threshold.
In other embodiments of the present application, the processor executes the environment information of the current environment where the electronic device is located to implement the following steps:
acquiring the current position of the electronic equipment; the environment information comprises the current position of the electronic equipment;
correspondingly, if the environmental information meets the preset environmental condition, the electronic device is controlled to be in a mute state, including:
if the current position of the electronic equipment belongs to the preset position, controlling the electronic equipment to be in a mute state; wherein the predetermined environmental condition includes a predetermined location.
In other embodiments of the present application, the processor executes the environment information of the current environment where the electronic device is located to implement the following steps:
determining a relationship between the electronic equipment and a current user of the electronic equipment; the environment information of the current environment comprises the relationship between the electronic equipment and the current user of the electronic equipment;
correspondingly, if the environmental information of the current environment meets the preset environmental condition, the electronic device is controlled to be in a mute state, including:
and if the relation between the electronic equipment and the current user of the electronic equipment meets the preset environmental condition, controlling the electronic equipment to be in a mute state.
In other embodiments of the present application, the processor performs the determining of the relationship between the electronic device and the current user of the electronic device to perform the steps of:
detecting distance information between the electronic equipment and a current user; the relationship between the electronic equipment and the current user of the electronic equipment comprises distance information between the electronic equipment and the current user;
correspondingly, if the relationship between the electronic device and the current user of the electronic device meets the preset environmental condition, controlling the electronic device to be in a mute state, including:
if the distance information is greater than or equal to a preset distance threshold, controlling the electronic equipment to be in a mute state; wherein the preset environmental condition comprises a preset distance threshold.
In other embodiments of the present application, the processor executes, if the current working state of the electronic device is a mute state, to acquire audio data information carried in the current playing information of the electronic device, so as to implement the following steps:
if the current working state of the electronic equipment is a mute state, detecting subtitle information carried in current playing information;
and if the current playing information does not carry the subtitle information, acquiring the audio data information carried in the current playing information.
In other embodiments of the present application, the processor performs a conversion process on the audio data information to obtain target text information, and displays the target text information at a preset position to obtain a target subtitle, so as to implement the following steps:
determining reference language information corresponding to the audio data information;
performing character conversion on the audio data information to obtain reference character information corresponding to the reference language information;
acquiring target language information corresponding to a target subtitle;
translating the reference character information into target character information corresponding to the target language information;
and displaying the target text information at a preset position to obtain a target caption.
In other embodiments of the present application, the processor performs conversion processing on the audio data information to obtain target text information, and after displaying the target text information at a preset position to obtain a target subtitle, the processor is further configured to implement the following steps:
and storing the target character information according to the time sequence of obtaining the target character information.
It should be noted that, a specific implementation process of the steps executed by the processor in this embodiment may refer to an implementation process in the information display method provided in the embodiments corresponding to fig. 1 to 5, and details are not described here.
The embodiment of the application provides electronic equipment, which is characterized in that the current working state of the electronic equipment is determined, if the current working state of the electronic equipment is in a mute state, audio data information in current playing information of the electronic equipment is obtained, the audio data information is converted to obtain target text information, and the target text information is displayed at a preset position to obtain a target subtitle. Therefore, when the electronic equipment with the current playing information carrying the audio information is in a mute state, the corresponding audio information is automatically converted into the corresponding target character information and displayed in a subtitle form, the problems that in the prior art, the subtitles need to be pre-configured and a user needs to manually open the pre-configured subtitles are solved, the processing process of subtitle display is simplified, and the intelligent degree of the electronic equipment is improved.
Based on the foregoing embodiments, embodiments of the present application provide a computer-readable storage medium, which may be applied to the method provided in the corresponding embodiments of fig. 1 to 5, and the computer-readable storage medium stores one or more programs, which are executable by one or more processors to implement the following steps:
determining the current working state of the electronic equipment;
if the current working state of the electronic equipment is a mute state, acquiring audio data information carried in current playing information of the electronic equipment;
and converting the audio data information to obtain target character information, and displaying the target character information at a preset position to obtain a target caption.
In other embodiments of the present application, before determining the current operating state of the electronic device, the processor is further configured to:
acquiring environmental information of the current environment of the electronic equipment;
and if the environmental information meets the preset environmental conditions, setting the current working state of the electronic equipment to be a mute state.
In other embodiments of the present application, the processor executes the environment information of the current environment where the electronic device is located to implement the following steps:
acquiring noise information of the current environment of the electronic equipment; wherein the environmental information comprises noise information;
correspondingly, if the environmental information satisfies the preset environmental condition, the current working state of the electronic device is set to be a mute state, including:
if the noise information is larger than a preset noise threshold value, setting the current working state of the electronic equipment to be a mute state; wherein the predetermined environmental condition comprises a predetermined noise threshold.
In other embodiments of the present application, the processor executes the environment information of the current environment where the electronic device is located to implement the following steps:
acquiring the current position of the electronic equipment; the environment information comprises the current position of the electronic equipment;
correspondingly, if the environmental information meets the preset environmental condition, the electronic device is controlled to be in a mute state, including:
if the current position of the electronic equipment belongs to the preset position, controlling the electronic equipment to be in a mute state; wherein the predetermined environmental condition includes a predetermined location.
In other embodiments of the present application, the processor executes the environment information of the current environment where the electronic device is located to implement the following steps:
determining a relationship between the electronic equipment and a current user of the electronic equipment; the environment information of the current environment comprises the relationship between the electronic equipment and the current user of the electronic equipment;
correspondingly, if the environmental information of the current environment meets the preset environmental condition, the electronic device is controlled to be in a mute state, including:
and if the relation between the electronic equipment and the current user of the electronic equipment meets the preset environmental condition, controlling the electronic equipment to be in a mute state.
In other embodiments of the present application, the processor performs the determining of the relationship between the electronic device and the current user of the electronic device to perform the steps of:
detecting distance information between the electronic equipment and a current user; the relationship between the electronic equipment and the current user of the electronic equipment comprises distance information between the electronic equipment and the current user;
correspondingly, if the relationship between the electronic device and the current user of the electronic device meets the preset environmental condition, controlling the electronic device to be in a mute state, including:
if the distance information is greater than or equal to a preset distance threshold, controlling the electronic equipment to be in a mute state; wherein the preset environmental condition comprises a preset distance threshold.
In other embodiments of the present application, the processor executes, if the current working state of the electronic device is a mute state, to acquire audio data information carried in the current playing information of the electronic device, so as to implement the following steps:
if the current working state of the electronic equipment is a mute state, detecting subtitle information carried in current playing information;
and if the current playing information does not carry the subtitle information, acquiring the audio data information carried in the current playing information.
In other embodiments of the present application, the processor performs a conversion process on the audio data information to obtain target text information, and displays the target text information at a preset position to obtain a target subtitle, so as to implement the following steps:
determining reference language information corresponding to the audio data information;
performing character conversion on the audio data information to obtain reference character information corresponding to the reference language information;
acquiring target language information corresponding to a target subtitle;
translating the reference character information into target character information corresponding to the target language information;
and displaying the target text information at a preset position to obtain a target caption.
In other embodiments of the present application, the processor performs conversion processing on the audio data information to obtain target text information, and after displaying the target text information at a preset position to obtain a target subtitle, the processor is further configured to implement the following steps:
and storing the target character information according to the time sequence of obtaining the target character information.
It should be noted that, in the embodiment of the present application, the multiple or multiple programs may be explained by steps of the one or multiple processors, and refer to the method implementation processes provided in the embodiments corresponding to fig. 1 to 5, which are not described herein again.
The embodiment of the application provides a computer-readable storage medium, which is characterized in that the current working state of electronic equipment is determined, if the current working state of the electronic equipment is a mute state, audio data information in current playing information of the electronic equipment is acquired, the audio data information is converted to obtain target text information, and the target text information is displayed at a preset position to obtain a target subtitle. Therefore, when the electronic equipment with the current playing information carrying the audio information is in a mute state, the corresponding audio information is automatically converted into the corresponding target character information and displayed in a subtitle form, the problems that in the prior art, the subtitles need to be pre-configured and a user needs to manually open the pre-configured subtitles are solved, the processing process of subtitle display is simplified, and the intelligent degree of the electronic equipment is improved.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application.

Claims (8)

1. An information display method, the method comprising:
acquiring environmental information of the current environment of the electronic equipment;
if the environmental information meets the preset environmental condition, setting the current working state of the electronic equipment to be a mute state;
determining the current working state of the electronic equipment;
if the current working state of the electronic equipment is the mute state, acquiring audio data information carried in the current playing information of the electronic equipment; the current playing information is a video telephone;
converting the audio data information to obtain target text information, and displaying the target text information at a preset position to obtain a target subtitle;
the acquiring of the environmental information of the current environment of the electronic device includes:
detecting distance information between the electronic equipment and a current user;
correspondingly, if the environmental information meets the preset environmental condition, setting the current working state of the electronic device to be the mute state, including:
if the distance information is larger than or equal to a preset distance threshold, controlling the electronic equipment to be in a mute state; wherein the preset environmental condition comprises the preset distance threshold.
2. The method of claim 1, wherein the obtaining environmental information of an environment in which the electronic device is currently located comprises:
acquiring noise information of the current environment of the electronic equipment; wherein the environmental information includes the noise information;
correspondingly, if the environmental information meets the preset environmental condition, setting the current working state of the electronic device to be the mute state, including:
if the noise information is larger than a preset noise threshold value, setting the current working state of the electronic equipment to be the mute state; wherein the predetermined environmental condition comprises the predetermined noise threshold.
3. The method according to claim 1 or 2, wherein the obtaining of the environmental information of the current environment of the electronic device further comprises:
acquiring the current position of the electronic equipment; wherein the environment information comprises a current location of the electronic device;
correspondingly, if the environmental information meets the preset environmental condition, controlling the electronic device to be in a mute state includes:
if the current position of the electronic equipment belongs to a preset position, controlling the electronic equipment to be in a mute state; wherein the preset environmental condition comprises the preset location.
4. The method of claim 1, wherein the obtaining environmental information of an environment in which the electronic device is currently located comprises:
determining a relationship between the electronic equipment and a current user of the electronic equipment; the current environment information comprises the relationship between the electronic equipment and the current user of the electronic equipment;
correspondingly, if the current environment meets the preset environment condition, controlling the electronic device to be in a mute state, including:
and if the relation between the electronic equipment and the current user of the electronic equipment meets a preset environmental condition, controlling the electronic equipment to be in a mute state.
5. The method according to claim 1, wherein the acquiring audio data information carried in the current playing information of the electronic device if the current working state of the electronic device is a mute state comprises:
if the current working state of the electronic equipment is the mute state, detecting subtitle information carried in the current playing information;
and if the subtitle information is not carried in the current playing information, acquiring the audio data information carried in the current playing information.
6. The method of claim 1, wherein converting the audio data information to obtain target text information, and displaying the target text information at a preset position to obtain a target subtitle comprises:
determining reference language information corresponding to the audio data information;
performing character conversion on the audio data information to obtain reference character information corresponding to the reference language information;
acquiring target language information corresponding to the target subtitles;
translating the reference character information into the target character information corresponding to the target language information;
and displaying the target text information at the preset position to obtain the target caption.
7. An electronic device, the electronic device comprising: a processor, a memory, and a communication bus, wherein:
the memory to store executable instructions;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is configured to execute the information display program stored in the memory to implement the information display method according to any one of claims 1 to 6.
8. A storage medium having stored thereon an information display program which, when executed by a processor, implements the steps of the information display method according to any one of claims 1 to 6.
CN201911195204.4A 2019-11-28 2019-11-28 Information display method, electronic equipment and storage medium Active CN111107283B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911195204.4A CN111107283B (en) 2019-11-28 2019-11-28 Information display method, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911195204.4A CN111107283B (en) 2019-11-28 2019-11-28 Information display method, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111107283A CN111107283A (en) 2020-05-05
CN111107283B true CN111107283B (en) 2022-03-25

Family

ID=70420994

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911195204.4A Active CN111107283B (en) 2019-11-28 2019-11-28 Information display method, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111107283B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115118812A (en) * 2022-06-10 2022-09-27 深圳传音控股股份有限公司 Information processing method, intelligent terminal and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008109595A (en) * 2006-10-27 2008-05-08 Nec Corp Automatic speech method switching system, server, method, and program
CN104333649A (en) * 2014-03-12 2015-02-04 广州三星通信技术研究有限公司 Method and equipment for presenting voice message on mobile terminal
CN106375548A (en) * 2016-08-19 2017-02-01 深圳市金立通信设备有限公司 Method for processing voice information and terminal
CN107995101A (en) * 2017-11-30 2018-05-04 上海掌门科技有限公司 A kind of method and apparatus for being used to switching to speech message into text message
CN108111986A (en) * 2017-12-27 2018-06-01 努比亚技术有限公司 A kind of conversion method of notification message, terminal and computer readable storage medium
CN108307043A (en) * 2017-12-28 2018-07-20 努比亚技术有限公司 Speech message conversion method, mobile terminal and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008109595A (en) * 2006-10-27 2008-05-08 Nec Corp Automatic speech method switching system, server, method, and program
CN104333649A (en) * 2014-03-12 2015-02-04 广州三星通信技术研究有限公司 Method and equipment for presenting voice message on mobile terminal
CN106375548A (en) * 2016-08-19 2017-02-01 深圳市金立通信设备有限公司 Method for processing voice information and terminal
CN107995101A (en) * 2017-11-30 2018-05-04 上海掌门科技有限公司 A kind of method and apparatus for being used to switching to speech message into text message
CN108111986A (en) * 2017-12-27 2018-06-01 努比亚技术有限公司 A kind of conversion method of notification message, terminal and computer readable storage medium
CN108307043A (en) * 2017-12-28 2018-07-20 努比亚技术有限公司 Speech message conversion method, mobile terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN111107283A (en) 2020-05-05

Similar Documents

Publication Publication Date Title
CN109168078B (en) Video definition switching method and device
US10356481B2 (en) Real-time modifiable text captioning
CN109729420A (en) Image processing method and device, mobile terminal and computer readable storage medium
CN110769265A (en) Simultaneous caption translation method, smart television and storage medium
CN105898364A (en) Video playing processing method, device, terminal and system
CN112653902B (en) Speaker recognition method and device and electronic equipment
CN113691829B (en) Virtual object interaction method, device, storage medium and computer program product
CN110557699B (en) Intelligent sound box interaction method, device, equipment and storage medium
CN112601101A (en) Subtitle display method and device, electronic equipment and storage medium
CN109782997B (en) Data processing method, device and storage medium
CN112423081B (en) Video data processing method, device and equipment and readable storage medium
CN112601102A (en) Method and device for determining simultaneous interpretation of subtitles, electronic equipment and storage medium
CN112153396B (en) Page display method, device, system and storage medium
CN108769638B (en) Projection control method and device, projection equipment and storage medium
CN111107283B (en) Information display method, electronic equipment and storage medium
WO2021057957A1 (en) Video call method and apparatus, computer device and storage medium
CN113992972A (en) Subtitle display method and device, electronic equipment and readable storage medium
CN111757187A (en) Multi-language subtitle display method, device, terminal equipment and storage medium
CN111161710A (en) Simultaneous interpretation method and device, electronic equipment and storage medium
US20230046440A1 (en) Video playback method and device
US20230195403A1 (en) Information processing method and electronic device
CN113852756B (en) Image acquisition method, device, equipment and storage medium
CN112118414B (en) Video session method, electronic device, and computer storage medium
CN112565913B (en) Video call method and device and electronic equipment
US20200184973A1 (en) Transcription of communications

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
GR01 Patent grant
GR01 Patent grant