Method, device, headphone device and storage medium for detecting illegal content

By integrating the illegal content detection method in the headset device, identifying and warning users of the violation information contained in the audio data listened to, the problem of difficult to effectively identify and evade violation information in the prior art is solved, and effective protection for users is achieved.

CN114067836BActive Publication Date: 2025-06-27GEER TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111264438.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-28
Publication Date
2025-06-27
Estimated Expiration
2041-10-28

AI Technical Summary

Technical Problem

The prior art is difficult to effectively help users identify and avoid the infringement of illegal information in the network, especially for teenage users who lack judgment and weak resistance.

Method used

By integrating the illegal content detection method in the headset device, collecting and identifying the audio data output by the connected device, determining whether the voice content contains illegal information, and outputting preset alarm prompt information when the illegal content is detected.

Benefits of technology

Real-time detection and warning of violation information in the audio content of users listening to, helping users identify and avoid potential harms in a timely manner, and protecting users' physical and mental health.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114067836B_ABST
    Figure CN114067836B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, apparatus, headphone device and storage medium for detecting illegal content. The method includes: collecting first audio data output by a first master device connected to the headphone device; identifying the first audio data to determine whether the speech content of the first audio data contains illegal content; and if it is determined that the speech content of the first audio data contains illegal content, outputting a preset alarm prompt message to prompt the user of the headphone device. The present invention can help users timely learn that the audio data contains illegal content and avoid being affected by the illegal content in the audio.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of earphone technology, and in particular to a method and device for detecting illegal content, an earphone device and a storage medium. Background Art

[0002] With the rapid development and widespread application of network technology and terminal technology, users can use terminal devices such as mobile phones and computers to receive various forms of rich information on the Internet anytime and anywhere. Among them, there is no shortage of information that is harmful to the physical and mental health of users and violates disciplines and regulations. At present, the response to these illegal information mainly relies on users to avoid them on their own. However, for some young users who lack judgment and have weak resistance, they are very likely to be harmed by these illegal information. Therefore, there is an urgent need to provide a solution to help users identify illegal information. Summary of the invention

[0003] The main purpose of the present invention is to provide a method, device, headphone device and storage medium for detecting illegal content, aiming to provide a solution based on the headphone device to help users identify illegal information in the audio they are listening to.

[0004] To achieve the above object, the present invention provides a method for detecting illegal content, which is applied to a headphone device and comprises the following steps:

[0005] Collecting first audio data output by a first host device connected to the headphone device;

[0006] Identify the first audio data to determine whether the speech content of the first audio data contains illegal content;

[0007] If it is determined that the voice content of the first audio data contains illegal content, a preset alarm prompt information is output to prompt the user of the headphone device.

[0008] Optionally, the step of identifying the first audio data to determine whether the voice content of the first audio data contains illegal content includes:

[0009] Acquire pre-stored second audio data containing preset illegal content from the earphone device;

[0010] Comparing the first audio data with each of the second audio data respectively to determine whether the first audio data contains data matching the second audio data;

[0011] If the first audio data includes data that matches at least one of the second audio data, it is determined that the voice content of the first audio data includes illegal content.

[0012] Optionally, the step of outputting a preset alarm prompt message to prompt the user of the headset device if it is determined that the speech content of the first audio data contains illegal content includes:

[0013] If it is determined that the speech content of the first audio data contains illegal content, obtain the illegal category of the illegal content in the second audio data that matches the first audio data;

[0014] Output a preset alarm prompt message corresponding to the illegal category to prompt the user of the headset device.

[0015] Optionally, after the step of determining that the speech content of the first audio data contains illegal content if the first audio data contains data that matches the second audio data, the method further includes:

[0016] Remove the part of the first audio data that matches the second audio data to obtain a third audio data;

[0017] Play the third audio data through the speaker of the headset device.

[0018] Optionally, after the step of identifying the first audio data to determine whether the speech content of the first audio data contains illegal content, the method further includes:

[0019] If it is determined that the speech content of the first audio data contains illegal content, generate a notification message according to the illegal content included in the first audio data;

[0020] Send the notification message to a preset guardian device through the cellular communication module of the headset device; or, send the notification message to a preset guardian device through the first master device connected to the headset device.

[0021] Optionally, before the step of collecting the first audio data output by the first master device connected to the headset device, the method further includes:

[0022] Receive an activation request for the illegal content detection function sent by the second master device connected to the headset device;

[0023] Save the guardian identity information and the network communication address of the guardian device sent by the second master device to the headset device according to the activation request, and activate the illegal content detection function of the headset device;

[0024] The step of sending the notification message to a preset guardian device through the first master device connected to the headset device includes:

[0025] Obtain the network communication address of the guardian device from the headphone device and send it to the first master device, so that the first master device can send the notification information to the guardian device according to the network communication address.

[0026] Optionally, after the step of saving the guardian identity information and the network communication address of the guardian device sent by the second master device into the headphone device according to the activation request and activating the illegal content detection function of the headphone device, the method further includes:

[0027] When receiving a configuration change request or a shutdown request for the illegal content detection function sent by a third master device connected to the headphone device, obtain authentication information from the third master device;

[0028] Obtain the guardian identity information from the headphone device and compare it with the authentication information;

[0029] If the guardian identity information is consistent with the authentication information, change the configuration information of the illegal content detection function according to the configuration change request or turn off the illegal content detection function in the headphone device according to the shutdown request.

[0030] To achieve the above object, the present invention further provides an illegal content detection device, which is deployed in a headphone device. The illegal content detection device includes:

[0031] An acquisition module, configured to acquire first audio data output by a first master device connected to the headphone device;

[0032] An identification module, configured to identify the first audio data to determine whether the speech content of the first audio data contains illegal content;

[0033] An alarm module, configured to output a preset alarm prompt message to prompt the user of the headphone device if it is determined that the speech content of the first audio data contains illegal content.

[0034] To achieve the above object, the present invention further provides a headphone device, which includes a memory, a processor, and an illegal content detection program stored on the memory and executable on the processor. When the illegal content detection program is executed by the processor, the steps of the above-mentioned illegal content detection method are implemented.

[0035] In addition, to achieve the above object, the present invention further proposes a computer-readable storage medium, on which an illegal content detection program is stored. When the illegal content detection program is executed by a processor, the steps of the above-mentioned illegal content detection method are implemented.

[0036] In the present invention, audio data sent by a connected master device is collected by a headphone device, and the audio data is recognized to determine whether the speech content of the audio data contains illegal content. If it is determined that the speech content of the audio data contains illegal content, a preset alarm prompt message is output to prompt the user of the headphone device, so that the user can timely learn that the audio data contains illegal content according to the prompt message and avoid being affected by the illegal content in the audio. Brief Description of the Drawings

[0037] Figure 1 It is a schematic flowchart of the first embodiment of the illegal content detection method of the present invention;

[0038] Figure 2 It is a schematic diagram of the functional modules of the preferred embodiment of the illegal content detection device of the present invention.

[0039] The realization, functional features and advantages of the object of the present invention will be further described with reference to the embodiments and the accompanying drawings. Detailed Embodiments

[0040] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0041] Referring to Figure 1 , Figure 1 It is a schematic flowchart of the first embodiment of the illegal content detection method of the present invention.

[0042] An embodiment of the illegal content detection method is provided in an embodiment of the present invention. It should be noted that although the logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than here. The illegal content detection method of the present invention is applied to a headphone device. The headphone device can be a wired headphone device or a wireless headphone device. The headphone device can include one or two headphones. If two wireless headphones are included, the illegal content detection method can be applied to one of the wireless headphones. In this embodiment, the illegal content detection method includes:

[0043] Step S10, collecting first audio data output by a first master device connected to the headphone device;

[0044] When the headphone device is connected to the master device, the master device outputs audio data to the headphone device for playback through the speaker of the headphone device. The headphone device can collect the audio data (hereinafter referred to as the first audio data for distinction) output by the master device (hereinafter referred to as the first master device for distinction) connected to the headphone device. The first audio data can be the audio data output by the master device in any mode that needs to play audio. In this embodiment, the application scenario of the master device outputting the first audio data is not limited. For example, it can be application scenarios such as opening a music software to play music, opening a video playback software to play a video with sound, voice call, video call, etc.

[0045] In one embodiment, a violation content detection function can be set in the headphone device, and the master device connected to the headphone device can be set to turn on or off the violation content detection function. Specifically, when the master device (which can be the first master device or other devices) is connected to the headphone device, the master device is set to be able to open the headphone device settings interface; in the headphone device settings interface, options for turning on and off the violation content detection function can be set. When the user views the headphone device settings interface, the status of the violation content detection function in the current headphone device is displayed in the headphone device settings interface. When it is in the on state, it is set to be able to be changed to the off state, and when it is in the off state, it is set to be able to be changed to the on state. When the violation content detection function of the headphone device is in the on state, the first audio data output by the first master device is collected and the following steps of violation content detection are performed; when the violation content detection function of the headphone device is in the off state, after receiving the first audio data output by the first master device, the first audio data is directly played through the speaker of the headphone device, that is, the normal headphone function.

[0046] In another embodiment, it can be set to collect the user image through the master device, identify the user's facial features in the user image to obtain the user's age. When the user's age is less than a preset age, a violation content detection function activation instruction is sent to the headphone device. After receiving the activation instruction, if the headphone device detects that the violation content detection function is in the off state, the violation content detection function is activated; further, when the identified user's age is not less than the preset age, a violation content detection function deactivation instruction is sent to the headphone device. After receiving the deactivation instruction, if the headphone device detects that the violation content detection function is in the on state, the violation content detection function is deactivated. Among them, the preset age can be set according to experience and built into the headphone device, or can be set by the user.

[0047] Step S20, identify the first audio data to determine whether the speech content of the first audio data contains violation content;

[0048] After obtaining the first audio data, the headphone device can identify the first audio data to determine whether the speech content of the first audio data contains any illegal content. Herein, the speech content can specifically refer to words and / or sounds, and the form of the speech content included in the first audio data is different when the form of the first audio data is different; for example, when the first audio data is the audio data of a user voice call, the speech content included therein can refer to the content spoken by the other party in the call, and when the first audio data is music, the speech content included therein can refer to the lyrics content of the music. The illegal content can be content defined in advance according to needs, and content that is not suitable for the user to listen to can be defined as illegal content. The headphone device can specifically identify the first audio data to determine whether the speech content of the first audio data contains any illegal content through methods such as text comparison, audio comparison, or machine learning, which is not limited in this embodiment.

[0049] In one embodiment, when the illegal content to be detected is mainly in text form, various texts corresponding to the illegal content (hereinafter referred to as the first text) can be pre-saved in the headphone device. Specifically, the first text can be saved in the flash chip or other types of storage chips of the headphone device. The first text saved in the headphone device can be pre-written into the headphone device during the production of the headphone device, and after being written, it is set to be unchangeable, or it can only be changed after passing an identity verification. In one embodiment, the method of identity verification can specifically be that when a user needs to modify the first text in the headphone device, the main device can be connected to the headphone device and obtain the pre-written server address from the headphone device; the main device connects to the background server according to the server address, and the background server is responsible for verifying the user identity; the user uploads their identity information (such as ID number, mobile phone number, etc.) through the main device, and the main device sends the identity information to the background server; the background server verifies the validity, legality, etc. of the identity information, and after passing the verification, the background server can send a specific instruction to the headphone device through the main device. After receiving the specific instruction, the headphone device obtains the first text from the headphone device and sends it to the main device for display; the user performs operations such as adding, deleting, and changing the first text through the main device. After the operation is completed, the main device writes the modified first text into the headphone device, and the headphone device performs subsequent illegal content detection based on the modified first text. Further, the headphone device can also regularly pull the latest first text from the background server through the connected main device to update the first text in the headphone device, so as to cope with the continuously emerging new forms of illegal content.

[0050] The earphone device can perform text recognition on the first audio data to identify whether the text is included in the first audio data. If the text is included in the first audio data, the earphone device will perform text matching on the text recognized from the first audio data (hereinafter referred to as the second text) and the second text; if the first text contains content that matches the second text, it is determined that the first audio data contains illegal content; among them, the method of text matching can refer to the existing text similarity calculation method, and if a part of the first text has a text similarity with the second text reaching a certain degree, it can be considered that this part matches the second text; if the first text does not contain content that matches the second text, it is determined that the first audio data does not contain illegal content. If the first audio data does not contain text, the earphone device can also determine at this time that the first audio data does not contain illegal content.

[0051] In another embodiment, the earphone device can build an illegal content recognition model trained by a machine learning algorithm. The data form of the input data of the illegal content recognition model can be text or audio, and the machine learning algorithm used can be conventional machine learning algorithms such as CNN and DNN, which are not limited here. When the data form of the input data is text, the illegal content recognition model can be trained with training data in text form. The training data can include multiple texts and labels indicating whether each text is illegal content, and the training method can be the training method of a conventional machine learning model; after the earphone device recognizes the first audio data as text, it can input the text into the illegal content recognition model to identify whether the text contains illegal content through the illegal content recognition model. When the data form of the input data is audio, the illegal content recognition model can be trained with training data in audio form. The training data can include multiple audio data and labels indicating whether each audio data contains illegal content; the earphone device can directly input the first audio data into the illegal content recognition model to identify whether the first audio data contains illegal content through the illegal content recognition model.

[0052] Step S30, if it is determined that the speech content of the first audio data contains illegal content, output a preset alarm prompt message to prompt the user of the earphone device.

[0053] If the headphone device determines that the speech content of the first audio data contains illegal content, it can output an alarm prompt message. Among them, the alarm prompt message can be a message used to prompt the user that the first audio data is not suitable for listening, and the specific content can be set as needed and can be pre-stored in the headphone device. If the alarm prompt message is a voice prompt message, after the headphone device obtains the stored alarm prompt message, it can be output through the speaker of the headphone device; if the alarm prompt message is a text prompt message, after the headphone device obtains the stored alarm prompt message, it can be sent to the first master device for the first master device to output to the display screen for display, or the headphone device can convert the alarm prompt message into voice and output it through the speaker.

[0054] In this embodiment, the audio data sent by the connected master device is collected by the headphone device, and the audio data is identified to determine whether the speech content of the audio data contains illegal content. If it is determined that the speech content of the audio data contains illegal content, a preset alarm prompt message is output to prompt the user of the headphone device, so that the user can timely learn that the audio data contains illegal content according to the prompt message and avoid being affected by the illegal content in the audio.

[0055] Further, based on the above first embodiment, a second embodiment of the illegal content detection method of the present invention is proposed. In this embodiment, the step S20 includes:

[0056] Step S201, obtain each second audio data containing preset illegal content pre-stored in the headphone device;

[0057] In this embodiment, the headphone device can identify the first audio data to determine whether the speech content of the first audio data contains illegal content, specifically by means of audio comparison. Specifically, various audio data containing illegal content (hereinafter referred to as the second audio data) can be pre-saved in the headphone device. The second audio data saved in the headphone device can be pre-written into the headphone device during the production of the headphone device, and after being written, it is set to be unchangeable, or it can only be changed after passing the identity verification. In one implementation, the identity verification method can be specifically that when a user needs to modify the second audio data in the headphone device, the main device can be connected to the headphone device and obtain the pre-written server address from the headphone device; the main device connects to the background server according to the server address, and the background server is responsible for verifying the user's identity; the user uploads their identity information (such as ID number, mobile phone number, etc.) through the main device, and the main device sends the identity information to the background server; the background server verifies the validity, legality, etc. of the identity information. After the verification is passed, the background server can send a specific instruction to the headphone device through the main device. After receiving the specific instruction, the headphone device obtains the second audio data from the headphone device and sends it to the main device for display; the user performs operations such as adding, deleting, and modifying the second audio data through the main device. After the operation is completed, the main device writes the modified second audio data into the headphone device, and the headphone device performs subsequent illegal content detection according to the modified second audio data. Further, the headphone device can also regularly pull the latest second audio data from the background server through the connected main device to update the second audio data in the headphone device, so as to cope with the continuously emerging new forms of illegal content.

[0058] There can be multiple pieces of second audio data, including different illegal contents. After the headphone device collects the first audio data, it can obtain each piece of second audio data from the headphone device.

[0059] Step S202: Compare the first audio data with each piece of the second audio data respectively to determine whether the first audio data contains data that matches the second audio data;

[0060] The headphone device compares the first audio data with each piece of the second audio data respectively to determine whether the first audio data contains data that matches each piece of the second audio data. Among them, the audio matching method can refer to the existing audio similarity calculation method. If a part of the first audio data has a similarity with the second audio data reaching a certain degree, it can be considered that this part matches the second audio data.

[0061] Step S203: If the first audio data contains data that matches at least one piece of the second audio data, determine that the speech content of the first audio data contains illegal content.

[0062] If the matching result obtained by the headphone device is that the first audio data contains data matching at least one second audio data, it can be determined that the speech content of the first audio data contains illegal content. At this time, the headphone device outputs an alarm prompt message to prompt the user, so that the user can timely distinguish the illegal content contained in the audio.

[0063] In an embodiment, if the matching result obtained by the headphone device is that the first audio data does not contain data matching any one of the second audio data, it can be determined that the speech content of the first audio data does not contain illegal content. At this time, the headphone device can not give a prompt and just perform normal audio output to ensure the normal headphone usage function of the user.

[0064] Further, in an embodiment, the step S30 includes:

[0065] Step S301, if it is determined that the speech content of the first audio data contains illegal content, obtain the illegal category of the illegal content in the second audio data that matches the first audio data;

[0066] If the headphone device determines that the speech content of the first audio data contains illegal content, that is, the first audio data contains data matching at least one second audio data, the headphone device can obtain the illegal category of the illegal content in the second audio data that matches the first audio data. Among them, the corresponding relationship between the illegal content in the second audio data and the illegal category can be pre-saved in the headphone device, and the headphone device can find its corresponding illegal category according to the second audio data. The illegal category can be defined in advance according to the illegal content contained in the second audio data.

[0067] Step S302, output a preset alarm prompt message corresponding to the illegal category to prompt the user of the headphone device.

[0068] After obtaining the illegal category of the illegal content in the second audio data that matches the first audio data, the headphone device can output an alarm prompt message corresponding to the illegal category. Among them, the alarm prompt messages corresponding to different illegal categories can be preset in the headphone device, that is, the alarm prompt message can contain descriptions related to the illegal category to indicate that the first audio data contains the illegal content of this illegal category.

[0069] Further, in an embodiment, after the step S203, the following is further included:

[0070] Step S205, remove the part of the first audio data that matches the second audio data to obtain third audio data;

[0071] Step S206: Play the third audio data using the speaker of the headphone device.

[0072] To further help users avoid listening to illegal content through the headphone device, the headphone device can be set with an illegal content avoidance function. Specifically, the headphone device can first refrain from playing the collected first audio data and first determine whether the first audio data contains illegal content. If the headphone device determines that the first audio data contains data that matches the second audio data, then the headphone device can first remove the part of the first audio data that matches the second audio data, that is, crop and delete the part of the first audio data that matches the second audio data, and use the remaining part of the first audio data as the third audio data. It can be understood that the third audio data does not include illegal content. After obtaining the third audio data, the headphone device then plays the third audio data using the speaker of the headphone device. Since the headphone device first detects and crops the audio data before playing it, there will be a certain time difference between the output of the audio data from the master device and the playback of the audio data by the headphone device. In some embodiments, it can be set so that the user can choose whether to enable or disable the illegal content avoidance function as needed; when the headphone device is set to enable the illegal content avoidance function, it first detects and crops the audio data before playing; when the headphone device is set to disable the illegal content avoidance function, it can play the audio data in real time after receiving the audio data, while detecting the audio data and giving an alarm for illegal content.

[0073] Further, based on the above first and / or second embodiments, a third embodiment of the illegal content detection method of the present invention is proposed. In this embodiment, after the step S20, the following is further included:

[0074] Step A10: If it is determined that the speech content of the first audio data contains illegal content, generate a notification message according to the illegal content included in the first audio data;

[0075] In this embodiment, when the user of the headphone device is a teenage user who needs to be supervised, the headphone device can be set to generate a notification message for notifying the guardian when it is determined that the speech content of the first audio data contains illegal content. Among them, the illegal content included in the first audio data can be identified together when determining whether the first audio data contains illegal content. For example, when it is determined by text comparison that the text of the first audio data matches the text containing illegal content, the matching text can be obtained as the illegal content; when it is determined by audio comparison that the first audio data matches the audio containing illegal content, the matching audio can be obtained as the illegal content.

[0076] The notification information generated according to the illegal content may specifically include the illegal content in the notification information, or include the illegal category to which the illegal content belongs in the notification information; in addition to the illegal content, the notification information may also include other information as required, such as the source of the first audio data (such as video call, voice call, music, video viewing, etc.). The notification information may be in the form of voice or text, which is not limited in this embodiment.

[0077] Step A20, sending the notification information to a preset guardian device through the cellular communication module of the headset device;

[0078] After generating the notification information, the headset device may send the notification information to a preset guardian device. The communication address of the guardian device may be pre-stored in the headset device. In one embodiment, a cellular communication module may be provided in the headset device, and the headset device sends the notification information to the guardian device via the cellular communication module.

[0079] Step A30: Send the notification information to a preset guardian device through the first main device connected to the earphone device.

[0080] In another embodiment, in order to reduce the hardware cost of the headphone device, the notification information can be sent to the guardian device through the first main device connected to the headphone device, that is, the notification information is sent to the designated guardian device using the communication module of the main device.

[0081] Furthermore, in one embodiment, the illegal content detection method further includes:

[0082] Step B10, receiving a request for starting the illegal content detection function sent by a second main device connected to the headphone device;

[0083] The headphone device can be set with a function for detecting illegal content, and it can be set to turn on, turn off, or change this illegal content detection function through the master device connected to the headphone device. Specifically, when the master device (hereinafter referred to as the second master device, and the second master device can be the first master device or other devices) is connected to the headphone device, the second master device is set to be able to open the headphone device settings interface; in the headphone device settings interface, options for turning on, turning off, and changing the illegal content detection function can be set. When the user views the headphone device settings interface, the status of the illegal content detection function in the current headphone device is displayed in the headphone device settings interface. When it is in the on state, it is set to be changeable to the off state. When it is in the off state, it is set to be changeable to the on state. When it is in the on state, it is also set to be able to change some setting items of the illegal content detection function, such as modifying or updating the first text or the second audio data, turning on and off the illegal content avoidance function, etc. The second master device sends a request to turn on the illegal content detection function to the headphone device according to the operation of the user (guardian) to turn on the illegal content detection function.

[0084] Step B20, save the guardian identity information and the network communication address of the guardian device sent by the second master device to the headphone device according to the turn-on request, and turn on the illegal content detection function of the headphone device;

[0085] In one implementation, the turn-on request can carry the guardian identity information and the network communication address of the guardian device. The headphone device extracts these two pieces of information from the turn-on request and saves them to the headphone device, and turns on the illegal content detection function of the headphone device. Specifically, the headphone device settings interface displayed by the second master device can be configured such that when the user needs to turn on this function, the guardian identity information and the network communication address of the guardian device need to be entered. After the user enters the information, the second master device sends the two pieces of information in the turn-on request to the headphone device.

[0086] In another implementation, after receiving the turn-on request, the headphone device can send a feedback information entry request to the second master device. The second master device sends the guardian identity information and the network communication address of the guardian device to the headphone device according to the information entry request. The headphone device saves the two pieces of information and turns on the illegal content detection function of the headphone device. Specifically, after receiving the feedback information entry request, the headphone device settings interface displayed by the second master device can be configured to require the entry of the guardian identity information and the network communication address of the guardian device. After the user enters the information, the second master device sends the two pieces of information to the headphone device.

[0087] In one embodiment, the guardian identity information can be used for identity verification. Specifically, when the violation content detection function of the headset device is enabled each time, the guardian identity information needs to be entered; the identity information can be the ID number, mobile phone number, etc. of the guardian, and the headset device verifies the identity information; the specific method of identity verification can be that the headset device sends the identity information to the background server, and the background server verifies the validity and legality of the identity information, and feeds back the verification result to the headset device. The headset device determines whether to enable the violation content detection function according to the verification result and feeds back the result to the second master device; when it is determined not to enable the violation content detection function, the second master device can output a prompt message to prompt the user that the identity verification fails. In another embodiment, the guardian identity information can be used to authenticate the identity of the user who wants to turn off or change the violation content detection function each time after the violation content detection function is enabled. If the identity verification is passed, the user is allowed to turn off and change; if the identity verification fails, the user is not allowed to turn off and change; at this time, the guardian identity information can also be information such as fingerprints, passwords, and passwords entered through the second master device, so that after the guardian enables the violation content detection function for the first time when setting up the headset device, others cannot turn off or change the violation content detection function without the guardian identity information.

[0088] The network communication address of the guardian device can be a network IP address, the telephone number used by the guardian device, etc. Information can be sent to the guardian device through this address.

[0089] The step A30 includes:

[0090] Step A301, obtain the network communication address of the guardian device from the headset device and send it to the first master device, so that the first master device can send the notification information to the guardian device according to the network communication address.

[0091] After generating the notification information, the headset device can obtain the saved network communication address of the guardian device from the headset device and send the network communication address to the first master device, so that the first master device can send the notification information to the guardian device according to the network communication address.

[0092] Further, in one embodiment, after the step B20, the following is further included:

[0093] Step B30, when receiving a configuration change request or a close request for the violation content detection function sent by the third master device connected to the headset device, obtain identity verification information from the third master device;

[0094] When the master device (hereinafter referred to as the third master device, which can be the first master device or other devices) is connected to the headphone device, the third master device sends a configuration change request or a shutdown request for the illegal content detection function to the headphone device according to the user's operation of changing or turning off the illegal content detection function.

[0095] In an embodiment, the configuration change request or the shutdown request may carry authentication information, and the headphone device extracts the authentication information from the configuration change request or the shutdown request. Specifically, the headphone device settings interface displayed by the third master device may be configured such that when the user needs to change or turn off this function, authentication information needs to be entered. After the user enters the information, the third master device sends the authentication information in the configuration change request or the shutdown request to the headphone device.

[0096] In another embodiment, after receiving the configuration change request or the shutdown request, the headphone device may send an information entry request to the third master device, and the third master device sends the authentication information entered by the user to the headphone device according to the information entry request. Specifically, after receiving the feedback information entry request, the headphone device settings interface displayed by the third master device may be configured to require the entry of authentication information. After the user enters the information, the third master device sends the authentication information to the headphone device.

[0097] Step B40, obtain the guardian identity information from the headphone device and compare it with the authentication information;

[0098] Step B50, if the guardian identity information is consistent with the authentication information, change the configuration information of the illegal content detection function according to the configuration change request or turn off the illegal content detection function in the headphone device according to the shutdown request.

[0099] The headphone device obtains the saved guardian identity information from the headphone device and compares it with the obtained authentication information. If the guardian identity information is consistent with the authentication information, such as the same fingerprint information, the same password, etc., the configuration information of the illegal content detection function can be changed according to the configuration change request. For example, if the configuration change request is to request to turn off the illegal content avoidance function, the illegal content avoidance function in the headphone device can be turned off. Another example is that if the configuration change request is to request to change the first text or the second audio data, the first text or the second audio data saved in the headphone device can be changed. Or, if the guardian identity information is consistent with the authentication information, the illegal content detection function in the headphone device can be turned off according to the shutdown request.

[0100] In addition, an embodiment of the present invention also proposes an illegal content detection device, which is deployed in the headphone device. Refer toFigure 2 , the illegal content detection device includes:

[0101] An acquisition module 10, configured to acquire first audio data output by a first master device connected to the headphone device;

[0102] An identification module 20, configured to identify the first audio data to determine whether the speech content of the first audio data contains illegal content;

[0103] An alarm module 30, configured to output a preset alarm prompt message to prompt the user of the headphone device if it is determined that the speech content of the first audio data contains illegal content.

[0104] Further, the identification module 20 includes:

[0105] A first acquisition unit, configured to acquire each second audio data containing preset illegal content pre-stored in the headphone device;

[0106] A comparison unit, configured to respectively compare the first audio data with each of the second audio data to determine whether the first audio data contains data matching the second audio data;

[0107] A determination unit, configured to determine that the speech content of the first audio data contains illegal content if the first audio data contains data matching at least one of the second audio data.

[0108] Further, the alarm module 30 includes:

[0109] A second acquisition unit, configured to acquire the illegal category of the illegal content in the second audio data matching the first audio data if it is determined that the speech content of the first audio data contains illegal content;

[0110] An alarm unit, configured to output a preset alarm prompt message corresponding to the illegal category to prompt the user of the headphone device.

[0111] Further, the illegal content detection device further includes:

[0112] A removal module, configured to remove the part of the first audio data that matches the second audio data to obtain third audio data;

[0113] A playback module, configured to play the third audio data using a speaker of the headphone device.

[0114] Further, the illegal content detection device further includes:

[0115] A generating module, configured to generate notification information according to the illegal content contained in the first audio data if it is determined that the voice content of the first audio data contains illegal content;

[0116] A sending module is used to send the notification information to a preset guardian device through the cellular communication module of the headset device; or to send the notification information to a preset guardian device through the first main device connected to the headset device.

[0117] Furthermore, the illegal content detection device also includes:

[0118] A receiving module, configured to receive a request for starting the illegal content detection function sent by a second main device connected to the headphone device;

[0119] A saving module, used to save the guardian identity information and the network communication address of the guardian device sent by the second main device to the headphone device according to the activation request, and activate the illegal content detection function of the headphone device;

[0120] The sending module is also used for:

[0121] The network communication address of the guardian device is obtained from the headphone device and sent to the first main device, so that the first main device can send the notification information to the guardian device according to the network communication address.

[0122] Furthermore, the illegal content detection device also includes:

[0123] an acquisition module, configured to acquire identity authentication information from a third main device connected to the headphone device when receiving a configuration change request or a shutdown request for the illegal content detection function sent by the third main device connected to the headphone device;

[0124] A comparison module, used for obtaining the guardian identity information from the earphone device and comparing it with the identity verification information;

[0125] The setting module is used to change the configuration information of the illegal content detection function according to the configuration change request or to close the illegal content detection function in the headphone device according to the closing request if the guardian identity information is consistent with the identity authentication information.

[0126] The extended contents of the specific implementation methods of the illegal content detection device of the present invention are basically the same as the embodiments of the illegal content detection method described above, and will not be elaborated here.

[0127] The headphone device of the present invention includes a memory, a processor, and a violation content detection program stored on the memory and operable on the processor. When the violation content detection program is executed by the processor, the following operations are implemented:

[0128] Collect first audio data output by a first master device connected to the headphone device;

[0129] Identify the first audio data to determine whether the speech content of the first audio data contains violation content;

[0130] If it is determined that the speech content of the first audio data contains violation content, output a preset alarm prompt message to prompt the user of the headphone device.

[0131] Further, the identifying the first audio data to determine whether the speech content of the first audio data contains violation content includes:

[0132] Obtain each second audio data containing preset violation content prestored in the headphone device;

[0133] Compare the first audio data with each of the second audio data respectively to determine whether the first audio data contains data matching the second audio data;

[0134] If the first audio data contains data matching at least one of the second audio data, determine that the speech content of the first audio data contains violation content.

[0135] Further, the if it is determined that the speech content of the first audio data contains violation content, then output a preset alarm prompt message to prompt the user of the headphone device includes:

[0136] If it is determined that the speech content of the first audio data contains violation content, obtain the violation category of the violation content in the second audio data matching the first audio data;

[0137] Output a preset alarm prompt message corresponding to the violation category to prompt the user of the headphone device.

[0138] Further, after the if the first audio data contains data matching the second audio data, then determine that the speech content of the first audio data contains violation content, it further includes:

[0139] Remove the part of the first audio data that matches the second audio data to obtain third audio data;

[0140] Play the third audio data using the speaker of the headphone device.

[0141] Further, after identifying the first audio data to determine whether the speech content of the first audio data contains any illegal content, the method further includes:

[0142] If it is determined that the speech content of the first audio data contains illegal content, a notification message is generated according to the illegal content included in the first audio data;

[0143] The notification message is sent to a preset guardian device through the cellular communication module of the headphone device; or, the notification message is sent to a preset guardian device through the first master device connected to the headphone device.

[0144] Further, before collecting the first audio data output by the first master device connected to the headphone device, the method further includes:

[0145] Receiving an activation request for the illegal content detection function sent by a second master device connected to the headphone device;

[0146] According to the activation request, the guardian identity information and the network communication address of the guardian device sent by the second master device are saved in the headphone device, and the illegal content detection function of the headphone device is activated;

[0147] The step of sending the notification message to a preset guardian device through the first master device connected to the headphone device includes:

[0148] Obtaining the network communication address of the guardian device from the headphone device and sending it to the first master device, so that the first master device sends the notification message to the guardian device according to the network communication address.

[0149] Further, after saving the guardian identity information and the network communication address of the guardian device sent by the second master device in the headphone device according to the activation request and activating the illegal content detection function of the headphone device, the method further includes:

[0150] When receiving a configuration change request or a shutdown request for the illegal content detection function sent by a third master device connected to the headphone device, obtaining authentication information from the third master device;

[0151] Obtaining the guardian identity information from the headphone device and comparing it with the authentication information;

[0152] If the guardian identity information is consistent with the authentication information, the configuration information of the illegal content detection function is changed according to the configuration change request or the illegal content detection function in the headphone device is shut down according to the shutdown request.

[0153] In addition, an embodiment of the present invention further provides a computer-readable storage medium, on which a program for detecting illegal content is stored. When the program for detecting illegal content is executed by a processor, the steps of the method for detecting illegal content as described above are implemented.

[0154] For each embodiment of the headphone device and the computer-readable storage medium of the present invention, reference can be made to each embodiment of the method for detecting illegal content of the present invention, which will not be elaborated herein.

[0155] It should be noted that in this article, the term "including", "comprising" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of another identical element in the process, method, article or device including the element.

[0156] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments.

[0157] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disc), and includes several instructions for causing a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0158] The above are only the preferred embodiments of the present invention, and do not limit the patent scope of the present invention accordingly. Any equivalent structure or equivalent process transformation made by using the specification and drawings of the present invention, or directly or indirectly applied to other related technical fields, shall be equally included in the patent protection scope of the present invention.

Claims

1. A method for detecting illegal content, characterized in that, The illegal content detection method is applied to a headphone device, and the illegal content detection method includes the following steps: Collect first audio data output by a first master device connected to the headphone device, where the first audio data is audio data output by the master device in any mode that needs to play audio; Identify the first audio data to determine whether the speech content of the first audio data contains illegal content; If it is determined that the speech content of the first audio data contains illegal content, output a preset alarm prompt message to prompt the user of the headphone device; The step of identifying the first audio data to determine whether the speech content of the first audio data contains illegal content includes: Obtain each second audio data containing preset illegal content pre-stored in the headphone device; Compare the first audio data with each of the second audio data respectively to determine whether the first audio data contains data that matches the second audio data; If the first audio data contains data that matches at least one of the second audio data, determine that the speech content of the first audio data contains illegal content; Alternatively, the step of identifying the first audio data to determine whether the speech content of the first audio data contains illegal content includes: Obtain each first text containing preset illegal content pre-stored in the headphone device; Perform text recognition on the first audio data. If a second text is recognized, match the second text with the first text; If the first text contains content that matches the second text, determine that the first audio data contains illegal content; Send a pre-written server address to the master device for the master device to link to the background server according to the server address, and the background server audits the identity information uploaded by the user through the master device; After receiving a specific instruction sent by the master device after the background server approves the user's identity, obtain the first text or the second audio data and send it to the master device for display, so that the user can perform addition, deletion, and modification operations on the first text or the second audio data through the master device; Receive the modified first text or second audio data sent by the master device, and perform subsequent illegal content detection according to the modified first text or second audio data.

2. The illegal content detection method according to claim 1, characterized in that, The step of if it is determined that the speech content of the first audio data contains illegal content, output a preset alarm prompt message to prompt the user of the headphone device includes: If it is determined that the speech content of the first audio data contains illegal content, obtain the illegal category of the illegal content in the second audio data that matches the first audio data; Output a preset alarm prompt message corresponding to the illegal category to prompt the user of the headphone device.

3. The illegal content detection method according to claim 1, characterized in that After the step of if the first audio data contains data that matches the second audio data, determine that the speech content of the first audio data contains illegal content, further includes: Remove the part of the first audio data that matches the second audio data to obtain third audio data; Play the third audio data using the speaker of the headphone device.

4. The illegal content detection method according to any one of claims 1 to 3, characterized in that After the step of identifying the first audio data to determine whether the speech content of the first audio data contains illegal content, the method further includes: If it is determined that the speech content of the first audio data contains illegal content, generate a notification message according to the illegal content contained in the first audio data; Send the notification message to a preset guardian device through the cellular communication module of the headphone device; or send the notification message to a preset guardian device through the first master device connected to the headphone device.

5. The illegal content detection method according to claim 4, characterized in that, Before the step of collecting the first audio data output by the first master device connected to the headphone device, the method further includes: Receive an opening request for the illegal content detection function sent by the second master device connected to the headphone device; Save the guardian identity information and the network communication address of the guardian device sent by the second master device to the headphone device according to the opening request, and turn on the illegal content detection function of the headphone device; The step of sending the notification message to a preset guardian device through the first master device connected to the headphone device includes: Obtain the network communication address of the guardian device from the headphone device and send it to the first master device for the first master device to send the notification message to the guardian device according to the network communication address.

6. The illegal content detection method according to claim 5, wherein After the step of saving the guardian identity information and the network communication address of the guardian device sent by the second master device to the headphone device according to the opening request and turning on the illegal content detection function of the headphone device, the method further includes: When receiving a configuration change request or a closing request for the illegal content detection function sent by the third master device connected to the headphone device, obtain authentication information from the third master device; Obtain the guardian identity information from the headphone device and compare it with the authentication information; If the guardian identity information is consistent with the authentication information, change the configuration information of the illegal content detection function according to the configuration change request or turn off the illegal content detection function in the headphone device according to the closing request.

7. An illegal content detection device, characterized in that, The illegal content detection device is deployed in a headphone device, and the illegal content detection device includes: A collection module for collecting first audio data output by a first master device connected to the headphone device, where the first audio data is audio data output by the master device in any mode that needs to play audio; An identification module for identifying the first audio data to determine whether the speech content of the first audio data contains illegal content; An alarm module for outputting a preset alarm prompt message to prompt the user of the headphone device if it is determined that the speech content of the first audio data contains illegal content; The identification module is further configured to: Obtain each second audio data containing preset illegal content pre-stored in the headphone device; Compare the first audio data with each of the second audio data respectively to determine whether the first audio data contains data that matches the second audio data; If the first audio data contains data that matches at least one of the second audio data, determine that the speech content of the first audio data contains illegal content; Alternatively, the recognition module is further configured to: Obtain each first text pre-stored in the headphone device and containing preset illegal content; Perform text recognition on the first audio data. If a second text is recognized, match the second text with the first text; If the first text contains content that matches the second text, determine that the first audio data contains illegal content; The illegal content detection device is further configured to: Send the pre-written server address to the master device for the master device to link to the background server according to the server address, and for the background server to review the identity information uploaded by the user through the master device; After receiving a specific instruction sent by the master device after the background server approves the user's identity, obtain the first text or the second audio data and send it to the master device for display, so that the user can perform addition, deletion, and modification operations on the first text or the second audio data through the master device; Receive the modified first text or second audio data sent by the master device, and perform subsequent illegal content detection based on the modified first text or second audio data.

8. An earphone device, characterized in that, The headphone device includes a memory, a processor, and an illegal content detection program stored on the memory and executable on the processor. When the illegal content detection program is executed by the processor, the steps of the illegal content detection method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium, characterized in that, An illegal content detection program is stored on the computer-readable storage medium. When the illegal content detection program is executed by the processor, the steps of the illegal content detection method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Communication fraud prevention method and device, computer readable medium and electronic equipment

    CN110309299A