CN109286554B - Social function unlocking method and device in social application - Google Patents

Social function unlocking method and device in social application Download PDF

Info

Publication number
CN109286554B
CN109286554B CN201811071978.1A CN201811071978A CN109286554B CN 109286554 B CN109286554 B CN 109286554B CN 201811071978 A CN201811071978 A CN 201811071978A CN 109286554 B CN109286554 B CN 109286554B
Authority
CN
China
Prior art keywords
user
social
voice data
unlocking
voice
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
CN201811071978.1A
Other languages
Chinese (zh)
Other versions
CN109286554A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201811071978.1A priority Critical patent/CN109286554B/en
Publication of CN109286554A publication Critical patent/CN109286554A/en
Application granted granted Critical
Publication of CN109286554B publication Critical patent/CN109286554B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/52User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
    • 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
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/28Constructional details of speech recognition systems
    • G10L15/30Distributed recognition, e.g. in client-server systems, for mobile phones or network applications
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L25/00Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00
    • G10L25/48Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use
    • G10L25/51Speech or voice analysis techniques not restricted to a single one of groups G10L15/00 - G10L21/00 specially adapted for particular use for comparison or discrimination

Abstract

The invention relates to a method and a device for unlocking a social function in a social application, wherein the method for unlocking the social function in the social application comprises the following steps: a first user initiates a social function unlocking invitation to a second user through a social application, wherein the social function unlocking invitation is used for indicating a social function requested to be unlocked by the first user; the social application where the second user is located sends second voice data to the server according to the first voice data in the social function unlocking invitation; the social application receives a matching result returned by the server according to the first voice data and the second voice data; and if the matching result indicates that the voice matching between the first user and the second user is successful, unlocking the social function indicated by the social function unlocking invitation in the social application. By adopting the method and the device for unlocking the social function in the social application, the problem that the social function in the prior art is not high in practicability is solved.

Description

Social function unlocking method and device in social application
Technical Field
The invention relates to the technical field of internet, in particular to a method and a device for unlocking a social function in social application.
Background
With the development of internet technology, social applications are favored by people, and people can communicate with each other without going out. Generally, the social application has a universal social function such as instant messaging, and a plurality of additional social functions such as shopping, food, transportation, payment and the like are expanded, so that the use experience of the social application user is enriched.
It can be understood that the social application user can communicate with friends and strangers through the social function provided by the social application, however, since the social application user is not familiar with strangers, if the social function is used at will, the awkward situation of communication is likely to be caused, for example, when a voice call is made, the call between the social application user and strangers is not made, and the practicability of the social function is greatly reduced, which may cause the social function to be abandoned by the social application user.
Therefore, how to improve the practicability of the social function still remains to be solved.
Disclosure of Invention
In order to solve the above technical problem, an object of the present invention is to provide a method and an apparatus for unlocking a social function in a social application.
The technical scheme adopted by the invention is as follows:
in a first aspect, a method for unlocking social functions in a social application includes: a first user initiates a social function unlocking invitation to a second user through a social application, wherein the social function unlocking invitation is used for indicating a social function requested to be unlocked by the first user; the social application where the second user is located sends second voice data to the server according to the first voice data in the social function unlocking invitation; the social application receives a matching result returned by the server according to the first voice data and the second voice data; and if the matching result indicates that the voice matching between the first user and the second user is successful, unlocking the social function indicated by the social function unlocking invitation in the social application.
In a second aspect, a method for unlocking a social function in a social application includes: the method comprises the steps that a server receives first voice data and second voice data, the first voice data are carried in a social function unlocking invitation initiated to a second user by a first user through a social application, the second voice data are sent to the server by the social application where the second user is located according to the first voice data in the social function unlocking invitation, and the social function unlocking invitation is used for indicating a social function requested to be unlocked by the first user; performing voice matching between the first user and the second user according to the first voice data and the second voice data to obtain a matching result; and returning the matching result to the social application, so that the social application unlocks the social function indicated by the social function unlocking invitation according to the successful voice matching between the first user and the second user indicated by the matching result.
In a third aspect, an apparatus for unlocking social functions in a social application includes: the request initiating module is used for a first user to initiate a social function unlocking invitation to a second user through a social application, and the social function unlocking invitation is used for indicating the social function requested to be unlocked by the first user; the voice sending module is used for sending second voice data to the server by the social application where the second user is located according to the first voice data in the social function unlocking invitation; the result receiving module is used for receiving a matching result returned by the server according to the first voice data and the second voice data by the social application; and the function unlocking module is used for unlocking the social function indicated by the social function unlocking invitation in the social application if the matching result indicates that the voice matching between the first user and the second user is successful.
In an exemplary embodiment, the apparatus further comprises: and the message display module is used for generating a social function unlocking prompt message when the first user and the second user have a conversation through the social applications where the first user and the second user are located, displaying the social function unlocking prompt message in the social application where the first user is located, and prompting the social function which can be unlocked in the social application of the first user through the displayed social function unlocking prompt message.
In an exemplary embodiment, the request initiation module includes: the first detection unit is used for detecting a first sound recording operation triggered by the first user for unlocking the social function; a first recording unit, configured to record the first voice data for the first user according to the first recording operation; and the first sending unit is used for initiating the social function unlocking invitation to the second user according to the first voice data and sending the first voice data to the server.
In an exemplary embodiment, the voice transmission module includes: the request receiving unit is used for receiving the social function unlocking invitation by the social application where the second user is located and extracting the first voice data from the social function unlocking invitation; the second detection unit is used for detecting a second sound recording operation triggered by the second user according to the first voice data; a second recording unit, configured to record the second voice data for the second user according to the second recording operation; and the second sending unit is used for uploading the second voice data to the server.
In an exemplary embodiment, the apparatus further comprises: and the result display module is used for displaying the matching result in the social application and prompting whether the unlocking of the social function requested to be unlocked by the first user is successful or not according to the displayed matching result.
In an exemplary embodiment, the social function that the first user requests to unlock is a voice call function; the function unlocking module includes: a connection establishing unit, configured to establish a voice call connection between the first user and the second user if the matching result indicates that the voice matching between the first user and the second user is successful; and the voice call unit is used for carrying out voice call between the first user and the second user in the social application through the established voice call connection.
In a fourth aspect, an apparatus for unlocking social functions in social applications includes: the data receiving module is used for receiving first voice data and second voice data by a server, wherein the first voice data is carried in a social function unlocking invitation initiated by a first user to a second user through a social application, the second voice data is sent to the server by the social application where the second user is located according to the first voice data in the social function unlocking invitation, and the social function unlocking invitation is used for indicating a social function which the first user requests to unlock; the voice matching module is used for performing voice matching between the first user and the second user according to the first voice data and the second voice data to obtain a matching result; and the result returning module is used for returning the matching result to the social application so that the social application unlocks the social function indicated by the social function unlocking invitation according to the successful voice matching between the first user and the second user indicated by the matching result.
In an exemplary embodiment, the voice matching module includes: the keyword extraction unit is used for respectively carrying out keyword extraction processing on the first voice data and the second voice data to obtain a first keyword set and a second keyword set; the matching degree calculation unit is used for calculating the matching degree between the first keyword set and the second keyword set; and the result generating unit is used for comparing the matching degree with a matching threshold value to generate the matching result.
In an exemplary embodiment, the input voice data is the first voice data or the second voice data, and the output set data is the first keyword set or the second keyword set; the keyword extraction unit includes: a voice recognition subunit for converting the input voice data into text data by voice recognition; the word segmentation processing subunit is used for carrying out word segmentation processing on the text data to generate a word segmentation set; and the word segmentation removing subunit is used for removing the meaningless words in the word segmentation set according to a preset dictionary to obtain the output set data.
In an exemplary embodiment, the keyword extracting unit further includes: and the preprocessing subunit is used for preprocessing the input voice data so that the voice recognition is performed on the preprocessed input voice data.
In an exemplary embodiment, the matching degree calculation unit includes: a first obtaining subunit, configured to obtain a first number of keywords in the first keyword set and a second number of keywords in the second keyword set; the second obtaining subunit is configured to determine an intersection of the first keyword set and the second keyword set, and obtain a third number of keywords in the intersection; and the calculating subunit is used for calculating the matching degree according to the sensitivity coefficient, the first number, the second number and the third number to obtain the matching degree between the first keyword set and the second keyword set.
In a fifth aspect, a social function unlocking device in a social application includes a processor and a memory, where the memory stores computer-readable instructions, and the computer-readable instructions, when executed by the processor, implement the social function unlocking method in the social application as described above.
In a sixth aspect, a computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, implements the method for unlocking a social function in a social application as described above.
In the technical scheme, the first user initiates a social function unlocking invitation to the second user through the social application, enabling the social application of the second user to send second voice data to the server according to the first voice data in the social function unlocking invitation, and then performing voice matching for the first user and the second user in the server according to the first voice data and the second voice data, to return a matching result to the social application, and when the matching result indicates that the voice matching between the first user and the second user is successful, unlocking the social function requested to be unlocked by the first user in the social application, therefore, the social function can not be used at will, and the first user and the second user can be unlocked only when the voice matching is successful, therefore, the embarrassing situation of communication between the first user and the second user is avoided, and the problem that the practicability of the social function is not high in the prior art is solved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1 is a schematic illustration of an implementation environment in accordance with the present invention.
Fig. 2 is a block diagram illustrating a hardware configuration of a terminal according to an exemplary embodiment.
Fig. 3 is a block diagram illustrating a hardware configuration of a server according to an example embodiment.
FIG. 4 is a flow diagram illustrating a method for unlocking social functionality in a social application, according to an example embodiment.
FIG. 5 is a flow chart of one embodiment of step 310 in the corresponding embodiment of FIG. 4.
Fig. 6 is a schematic diagram of a first user initiating a social function unlock invitation in accordance with a corresponding embodiment of fig. 5.
Fig. 7 is a flow chart of one embodiment of step 330 in the corresponding embodiment of fig. 4.
Fig. 8 is a diagram illustrating a second user accepting an invitation to unlock a social function according to a corresponding embodiment of fig. 7.
Fig. 9 is a schematic diagram illustrating a matching result displayed in the social application of the second user according to the corresponding embodiment of fig. 7.
FIG. 10 is a flow chart of one embodiment of step 370 of the corresponding embodiment of FIG. 4.
FIG. 11 is a flowchart illustrating a method for unlocking social functions in a social application, according to an example embodiment.
FIG. 12 is a flowchart of one embodiment of step 730 in the corresponding embodiment of FIG. 11.
FIG. 13 is a flowchart of one embodiment of step 731 in the corresponding embodiment of FIG. 12.
Fig. 14 is a detailed diagram of the speech matching process according to the corresponding embodiment of fig. 13.
FIG. 15 is a flowchart of one embodiment of step 733 in the corresponding embodiment of FIG. 12.
Fig. 16 is a specific schematic diagram of a matching degree calculation process according to the corresponding embodiment in fig. 15.
Fig. 17 is a diagram illustrating voice matching between a first user and a second user according to the corresponding embodiment of fig. 15.
FIG. 18 is a block diagram illustrating a social function unlocking device in a social application, according to an example embodiment.
FIG. 19 is a block diagram illustrating another social function unlocking device in a social application, according to an example embodiment.
Fig. 20 is a block diagram illustrating a hardware structure of a social function unlocking device in a social application according to an exemplary embodiment.
While specific embodiments of the invention have been shown by way of example in the drawings and will be described in detail hereinafter, such drawings and description are not intended to limit the scope of the inventive concepts in any way, but rather to explain the inventive concepts to those skilled in the art by reference to the particular embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a schematic diagram of an implementation environment related to a social function unlocking method in a social application. The implementation environment includes a terminal and a server 200.
The terminal may be a desktop computer, a notebook computer, a tablet computer, a smart phone, or other electronic devices that can be used for social application running, which is not limited herein.
It is noted that the social application may be in the form of an application program or a web page, and for this purpose, the interface presented by the social application to the user may be in the form of a program window or a web page, which is not limited herein.
Further, the terminals include a terminal 110 for operating a social application of the first user and a terminal 130 for operating a social application of the second user.
The server 200 is an electronic device that provides a background service for a user, for example, the background service includes an instant messaging service, a voice matching service, and the like.
It should be noted that, according to the actual operation requirement, the background service provided for the user is not limited to one server 200, and for example, the background service may also be provided for the user through a server cluster 300 composed of a plurality of servers 200, as shown in fig. 1.
In addition, the background service may also be deployed in different servers 200 in the server cluster according to the type, for example, one server 200 provides an instant messaging service for the user, and is regarded as a social server; the other server 200 provides the voice matching service for the user, which is regarded as an unlock server, as shown in fig. 1, and this is not specifically limited by the embodiments of the present invention.
The terminal establishes a network connection with the server 200 through wireless or wired connection, and realizes data transmission with the server 200 through the network connection. For example, the transmitted data may be voice data, matching results, and the like.
When the social application runs in the terminal, the first user and the second user are in conversation through the social applications in which the first user and the second user are located. As the session progresses, if the first user wishes to unlock the social function, the first user initiates a social function unlocking invitation to the second user through the social application where the first user is located, so that the social application where the second user is located receives the social function unlocking invitation.
When the social application where the second user is located receives the social function unlocking invitation, the second user can select whether to accept the social function unlocking invitation or not through the social application where the second user is located.
By initiating and accepting the social function unlocking invitation, the social application where the first user is located sends the first voice data to the server 200, and the social application where the second user is located sends the second voice data to the server 200.
Through interaction between the terminal and the server 200, for the server 200, along with initiation and acceptance of the social function unlocking invitation, the first voice data and the second voice data are received, further voice matching between the first user and the second user is performed according to the first voice data and the second voice data, and a matching result is returned to the social application where the first user and the second user are respectively located.
For the social application, when the matching result indicates that the voice matching between the first user and the second user is successful, the social function requested to be unlocked by the first user can be unlocked, and then the social function for completing unlocking is provided for the first user and the second user.
Referring to fig. 2, fig. 2 is a block diagram illustrating a terminal according to an example embodiment. The terminal is suitable for use in the terminal 100 in the implementation environment shown in fig. 1.
It should be noted that the terminal is only an example adapted to the present invention, and should not be considered as providing any limitation to the scope of the present invention. Nor should the terminal be interpreted as having a need to rely on or have to have one or more components of the exemplary terminal 100 shown in fig. 2.
As shown in fig. 2, the terminal 100 includes a memory 101, a memory controller 103, one or more (only one shown in fig. 2) processors 105, a peripheral interface 107, a radio frequency module 109, a positioning module 111, a camera module 113, an audio module 115, a touch screen 117, and a key module 119. These components communicate with each other via one or more communication buses/signal lines 121.
The memory 101 may be used to store computer programs and modules, such as computer readable instructions and modules corresponding to the method and apparatus for unlocking a social function in a social application in an exemplary embodiment of the present invention, and the processor 105 executes various functions and data processing by executing the computer readable instructions stored in the memory 101, so as to complete the method for unlocking a social function in a social application.
The memory 101, as a carrier of resource storage, may be random access memory, e.g., high speed random access memory, non-volatile memory, such as one or more magnetic storage devices, flash memory, or other solid state memory. The storage means may be a transient storage or a permanent storage.
The peripheral interface 107 may include at least one wired or wireless network interface, at least one serial-to-parallel conversion interface, at least one input/output interface, at least one USB interface, and the like, for coupling various external input/output devices to the memory 101 and the processor 105, so as to realize communication with various external input/output devices. For example, the first voice data or the second voice data is uploaded to the server, or a matching result returned by the server is received.
The rf module 109 is configured to receive and transmit electromagnetic waves, and achieve interconversion between the electromagnetic waves and electrical signals, so as to communicate with other devices through a communication network. Communication networks include cellular telephone networks, wireless local area networks, or metropolitan area networks, which may use various communication standards, protocols, and technologies.
The positioning module 111 is used for acquiring the current geographic position of the terminal 100. Examples of the positioning module 111 include, but are not limited to, a global positioning satellite system (GPS), a wireless local area network-based positioning technology, or a mobile communication network-based positioning technology.
The camera module 113 is attached to a camera and is used for taking pictures or videos. The shot pictures or videos can be stored in the memory 101 and also can be sent to an upper computer through the radio frequency module 109.
Audio module 115 provides an audio interface to a user, which may include one or more microphone interfaces, one or more speaker interfaces, and one or more headphone interfaces. And performing audio data interaction with other equipment through the audio interface. The audio data may be stored in the memory 101 and may also be transmitted through the radio frequency module 109. For example, the audio data may be first voice data or second voice data.
The touch screen 117 provides an input-output interface between the terminal 100 and a user. Specifically, the user may perform an input operation, such as a gesture operation of clicking, touching, sliding, and the like, through the touch screen 117, so that the terminal 100 responds to the input operation. The terminal 100 displays and outputs the output content formed by any one or combination of text, pictures or videos to the user through the touch screen 117.
The key module 119 includes at least one key for providing an interface for a user to input to the terminal 100, and the user can cause the terminal 100 to perform different functions by pressing different keys. For example, the sound adjustment key may allow the user to effect an adjustment of the volume of sound played by the terminal 100. For example, a first user may be provided to trigger a first recording operation, or a second user may be provided to trigger a second recording operation.
It is to be understood that the configuration shown in fig. 2 is merely exemplary, and terminal 100 may include more or fewer components than shown in fig. 2, or different components than shown in fig. 2. The components shown in fig. 2 may be implemented in hardware, software, or a combination thereof.
Fig. 3 is a block diagram illustrating a hardware configuration of a server according to an example embodiment. The server is suitable for use in the server 200 of the implementation environment shown in fig. 1.
It should be noted that the server is only an example adapted to the present invention, and should not be considered as providing any limitation to the scope of the present invention. The server side cannot be interpreted as having to rely on or have to have one or more components in the exemplary server 200 shown in fig. 3.
The hardware structure of the server may be greatly different due to different configurations or performances, as shown in fig. 3, the server 200 includes: a power supply 210, an interface 230, at least one memory 250, and at least one Central Processing Unit (CPU) 270.
The power supply 210 is used to provide operating voltage for each hardware device on the server 200.
The interface 230 includes at least one wired or wireless network interface 231, at least one serial-to-parallel conversion interface 233, at least one input/output interface 235, and at least one USB interface 237, etc. for communicating with external devices.
The storage 250 is used as a carrier for resource storage, and may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the resources stored thereon include an operating system 251, an application 253, data 255, etc., and the storage manner may be a transient storage or a permanent storage. The operating system 251 is used for managing and controlling various hardware devices and application programs 253 on the server 200 to implement the computation and processing of the mass data 255 by the central processing unit 270, and may be Windows server, Mac OS XTM, unix, linux, FreeBSDTM, or the like. The application 253 is a computer program that performs at least one specific task on the operating system 251, and may include at least one module (not shown in fig. 3), each of which may contain a series of computer-readable instructions for the server 200. The data 255 may be photographs, pictures, voice data, etc. stored in a disk.
The central processor 270 may include one or more processors and is arranged to communicate with the memory 250 via a bus for computing and processing the mass data 255 in the memory 250.
As described in detail above, the server 200 to which the present invention is applied will complete the social function unlocking method in the social application by the central processor 270 reading a series of computer readable instructions stored in the memory 250.
Furthermore, the present invention can be implemented by hardware circuits or by a combination of hardware circuits and software, and thus, the implementation of the present invention is not limited to any specific hardware circuits, software, or a combination of both.
Referring to fig. 4, in an exemplary embodiment, a method for unlocking a social function in a social application is applied to a terminal in the implementation environment shown in fig. 1, and the structure of the terminal may be as shown in fig. 2.
The method for unlocking the social function in the social application may be executed by a terminal, and may also be understood as being executed by the social application running in the terminal.
The method for unlocking the social function in the social application can comprise the following steps:
at step 310, a first user initiates a social function unlock invitation to a second user through a social application.
It may be appreciated that if the first user and the second user are strangers, as the first user and the second user become more familiar with each other, the first user is more likely to request unlocking of social functionality provided by the social application, and the second user is more likely to be inclined to agree to unlocking of social functionality provided by the social application.
Therefore, the first user and the second user preferably refer to social application users who have a conversation through respective social applications, so that the first user and the second user can become familiar with each other gradually as the conversation between the first user and the second user develops, and communication after the social function is unlocked is facilitated.
Optionally, in the social application where the first user is located, along with the development of the session between the first user and the second user, a social function unlocking prompt message is generated and displayed in an interface displayed to the first user by the social application where the first user is located, so as to prompt the first user of the social function which can be unlocked in the social application.
As shown in fig. 6, the social function unlock prompting message 401 is "measure your voice bonus index start voice chat bar", where the social function unlock prompting message 401 is used to prompt that the social function unlockable in the first user social application is a voice call function.
If the first user wishes to unlock the social function, a social function unlocking invitation can be initiated to the second user through the social application. Wherein the social function unlocking invitation is used for indicating that the first user requests the unlocked social function.
In a specific implementation of the embodiment, the first user records a segment of voice for unlocking the social function through the social application where the first user is located, so as to initiate the social function unlocking invitation to the second user through the segment of voice, that is, the voice is carried in the social function unlocking invitation.
And 330, sending second voice data to the server by the social application where the second user is according to the first voice data in the social function unlocking invitation.
After the first user initiates the social function unlocking invitation to the second user through the social application, the social function unlocking invitation can be received for the social application where the second user is located.
And if the second user accepts the social function unlocking invitation, sending second voice data to the server through the social application where the second user is located.
In a specific implementation of the embodiment, the second voice data is generated based on the first voice data in the social function unlocking invitation, that is, a piece of voice recorded by the first user for unlocking the social function. It is also understood that the second voice data is a response of the second user after listening to the voice recorded by the first user.
Optionally, the second voice data is a segment of voice recorded by the second user.
Step 350, the social application receives a matching result returned by the server according to the first voice data and the second voice data.
With the initiation and acceptance of the social function unlocking invitation, the social application where the first user is located sends first voice data to the server, and the social application where the second user is located sends second voice data to the server.
For the server, the first voice data and the second voice data can be received, then voice matching between the first user and the second user is carried out according to the first voice data and the second voice data, and matching results are returned to social applications where the first user and the second user are located respectively.
Therefore, the tacit degree between the first user and the second user can be tested through voice matching, so that whether the social function requested to be unlocked by the first user needs to be unlocked in the social application or not is judged, and the awkward situation of communication between the first user and the second user is avoided.
It should be noted that, in order to improve the utilization rate of the network bandwidth, the terminal compresses the voice data between transmissions of the voice data, and then, for the server, after receiving the voice data, it needs to perform corresponding decompression processing, so that the voice matching is performed on the decompressed voice data.
And step 370, if the matching result indicates that the voice matching between the first user and the second user is successful, unlocking the social function indicated by the social function unlocking invitation in the social application.
If the matching result indicates that the voice matching between the first user and the second user is successful, the fact that a certain default exists between the first user and the second user is indicated, the embarrassing communication situation probability is low, and the social function, requested to be unlocked by the first user, in the social application can be unlocked.
On the contrary, if the matching result indicates that the voice matching between the first user and the second user fails, it indicates that the tacit understanding between the first user and the second user is insufficient, and an embarrassing situation of communication is likely to occur, and for this reason, the social application will refuse to unlock the social function requested to be unlocked by the first user.
Through the process, the limited use of the social function is realized, namely, the first user and the second user with insufficient tacit understanding cannot use the social function which is not unlocked, and the social function can be unlocked only when the first user and the second user are with sufficient tacit understanding, so that the first user and the second user are ensured not to communicate awkwardly due to the completion of the unlocked social function, the practicability of the social function is effectively improved, the use experience of the social application user is promoted, and the viscosity of the social application user to the social application is fully guaranteed.
Referring to FIG. 5, in an exemplary embodiment, step 310 may include the steps of:
step 311, detecting a first sound recording operation triggered by the first user for unlocking the social function.
As described above, when the social application where the first user is located generates the social function unlocking prompt message and displays the social function unlocking prompt message in the social application where the first user is located, the first user can know the social function which can be unlocked in the social application where the first user is located. Then, the first user may notify the social application that he or she wishes to unlock the social function through the social function unlocking prompt message.
As shown in fig. 6, when the social function unlock prompting message 401 is displayed in the social application, the first user may click a "microphone" button 402, so that the social application where the first user is located knows that the first user wishes to unlock the social function prompted by the social function unlock prompting message 401.
Further, when the first user clicks the "start" button 403 to start recording and clicks the "finish" button 404 to end recording, that is, the social application where the first user is located detects a first recording operation triggered by the first user for unlocking the social function, at this time, the social application where the first user is located generates first voice data correspondingly, that is, a piece of voice recorded by the first user for unlocking the social function.
Step 313, recording the first voice data for the first user according to the first recording operation.
As shown in FIG. 6, the first recording operation includes two clicks, namely, a "start" button 403 and a "finish" button 404.
It is noted that, depending on the input component configured on the terminal held by the first user, for example, the input component may be a mouse, a keyboard, a stylus pen, a touch screen, etc., the first recording operation will be different. For example, if the input component is a mouse, the first recording operation may be a mechanical operation such as clicking, double-clicking, moving, dragging and the like; if the input component is a touch screen, the first recording operation may be a gesture operation such as a click operation or a slide operation, which is not limited in this embodiment.
Step 315, initiating the social function unlocking invitation to the second user according to the first voice data, and sending the first voice data to the server.
As shown in fig. 6, when the first voice data is recorded, the first user may click the "send" button 405, initiate an invitation to unlock the social function to the second user according to the first voice data, and send the first voice data to the server, so as to wait for the second user to respond.
Under the action of the embodiment, the first voice data is generated and serves as a basis for voice matching between the first user and the second user through the server, and further whether unlocking is allowed to be achieved by subsequent judgment of the social function is achieved.
Referring to fig. 7, in an exemplary embodiment, step 330 may include the following steps:
and 331, the social application where the second user is located receives the social function unlocking invitation, and extracts the first voice data from the social function unlocking invitation.
As described above, for the social application where the first user is located, the social function unlocking invitation is initiated according to the first voice data, that is, the first voice data is carried in the social function unlocking invitation.
Therefore, in the case of the social application where the second user is located, after receiving the social function unlocking invitation, the first voice data can be extracted, so that the second user can respond to the first voice data.
In a specific implementation of the embodiment, when the social application where the second user is located receives the social function unlocking invitation, a social function unlocking invitation prompt message is generated and displayed in the social application where the second user is located, so as to prompt the second user of the social application that the first user requests to unlock the social function.
As shown in fig. 8, the social function unlocking invitation prompt message 406 is "you receive a sound score test and click start bar", where the social function unlocking invitation prompt message 406 is used to prompt the second user that the social function requested to be unlocked by the first user in the social application is a voice call function.
Step 333, detecting a second recording operation triggered by the second user according to the first voice data.
As described above, when the social application where the second user is located generates the social function unlocking invitation prompt message and displays the message in the social application where the second user is located, the second user can know the social function that the first user requests to unlock. Then, the second user may unlock the invitation prompt message through the social function, and notify the social application that he agrees to unlock the social function.
As shown in fig. 8, when the social function unlock invitation prompt message 406 is displayed in the social application, the second user may click on a "microphone" button 407, so that the social application where the second user is located knows that the second user agrees to unlock the social function prompted by the social function unlock prompt message 406.
Further, when the second user listens to the voice recorded by the first user, that is, the first voice data, the response is further made, that is, the "start" button 408 is clicked to start the recording, and the "finish" button 409 is clicked to end the recording, that is, the social application where the second user is located detects the second recording operation triggered by the second user, and at this time, the social application where the second user is located correspondingly generates the second voice data, that is, a section of voice recorded by the second user.
Step 335, recording the second voice data for the second user according to the second recording operation.
As shown in FIG. 8, the second recording operation also includes two clicks, namely, clicking the "start" button 408 and clicking the "finish" button 409.
Similarly, the second recording operation will be different according to the input component configured by the terminal held by the second user, for example, the input component may be a mouse, a keyboard, a stylus pen, a touch screen, etc. similar to the first recording operation. For example, if the input component is a mouse, the second recording operation may be a mechanical operation such as clicking, double-clicking, moving, dragging and the like; if the input component is a touch screen, the second recording operation may be a gesture operation such as a click or a slide, which is not limited in this embodiment.
Step 337, uploading the second voice data to the server.
As shown in fig. 8, when the second voice data is recorded, the second user may click the "send" button 410 to send the second voice data to the server, so that the server may perform subsequent voice matching for social function unlocking.
Through the process, the second voice data is generated and serves as a basis for voice matching between the first user and the second user through the server, and further whether the social function is allowed to be unlocked or not is judged subsequently.
In an exemplary embodiment, after step 350, the method as described above may further include the steps of:
and displaying the matching result in the social application, and prompting whether the unlocking of the social function requested to be unlocked by the first user is successful or not through the displayed matching result.
As shown in fig. 9, for "matching result-failure", the displayed matching result prompts that the unlocking of the social function requested to be unlocked by the first user fails.
And aiming at the matching result, namely success, the displayed matching result prompts that the unlocking of the social function requested to be unlocked by the first user is successful, and the social application provides the unlocking completed social function for the first user and the second user.
Under the effect of the embodiment, the display of the matching result is realized, so that the first user can timely master whether the social function is successfully unlocked, blind waiting is avoided, the use experience of the social application user is promoted, and the viscosity of the social application user to the social application is fully guaranteed.
Referring to fig. 10, in an exemplary embodiment, the social function that the first user requests to unlock is a voice call function.
Specifically, step 370 may include the steps of:
step 371, if the matching result indicates that the voice matching between the first user and the second user is successful, establishing a voice call connection between the first user and the second user.
Step 373, performing a voice call between the first user and the second user in the social application through the established voice call connection.
Therefore, after the voice call function is unlocked, the first user can carry out voice call with the second user through the social application, the usable social function between the first user and the second user is further enriched, the use experience of the social application user is better promoted, and the viscosity of the social application user to the social application is fully guaranteed.
Referring to fig. 11, in an exemplary embodiment, a method for unlocking a social function in a social application is applied to a server in the implementation environment shown in fig. 1, and the structure of the server may be as shown in fig. 3.
The method for unlocking the social function in the social application can be executed by a server and comprises the following steps:
step 710, the server receives the first voice data and the second voice data.
The first voice data is carried in a social function unlocking invitation initiated by a first user to a second user through a social application, and the second voice data is sent to the server by the social application where the second user is located according to the first voice data in the social function unlocking invitation.
The social function unlocking invitation is used for indicating the social function requested to be unlocked by the first user.
Step 730, performing voice matching between the first user and the second user according to the first voice data and the second voice data to obtain a matching result.
And step 750, returning the matching result to the social application, so that the social application unlocks the social function indicated by the social function unlocking invitation according to the successful voice matching between the first user and the second user indicated by the matching result.
In the process, the tacit degree test between the first user and the second user is realized, and the tacit degree test is used as a basis for judging whether the social function is allowed to be unlocked, so that the unlocking accuracy of the social function is fully ensured.
Referring to fig. 12, in an exemplary embodiment, step 730 may include the following steps:
step 731, performing keyword extraction processing on the first voice data and the second voice data respectively to obtain a first keyword set and a second keyword set.
It is understood that the keyword extraction processes performed on the first voice data and the second voice data are substantially identical, and differ only in that the input objects are different, one is the first voice data, the other is the second voice data, and the output objects are also different, one is the first keyword set, and the other is the second keyword set.
Here, the following definitions are made in order to better describe the keyword extraction processing procedure.
Inputting voice data: first voice data or second voice data.
Inputting aggregate data: a first set of keywords or a second set of keywords.
As shown in fig. 13, the keyword extraction process may include the steps of:
step 7310, preprocessing the input voice data so that the voice recognition is performed on the preprocessed input voice data.
Pretreatment, including but not limited to: filtering, noise reduction and the like to remove the interference of noise to input voice data in the data transmission process, thereby being beneficial to ensuring the accuracy of voice matching.
Step 7311, converting the input voice data into text data by voice recognition.
Step 7313, performing word segmentation processing on the text data to generate a word segmentation set.
Step 7315, removing the meaningless participles in the participle set according to a preset dictionary to obtain the output set data.
The preset dictionary is essentially a set of meaningless participles, for example, "you", "I", "Ho" are all regarded as meaningless participles and are included in the preset dictionary.
Therefore, if the participles in the participle set are matched with the meaningless participles in the preset dictionary, the participles can be regarded as the meaningless participles and removed, and finally output set data is formed.
Through the arrangement, key words, contexts and the like play a vital role in voice matching, the problem that the voice matching is not accurate enough due to mechanical follow-up reading of aligned characters and tones is avoided, and the accuracy of the voice matching is improved.
Step 733, calculating a matching degree between the first keyword set and the second keyword set.
Step 735, comparing the matching degree with a matching threshold value, and generating the matching result.
The matching threshold may be flexibly set according to the actual needs of the application scenario, for example, the matching degree is represented by a matching score, and accordingly, the matching threshold is set to 75 scores, which is not specifically limited in this embodiment.
Specifically, as shown in fig. 14, the terminal side, S501: the first user A records a voice A for unlocking the social function, and the second user B agrees to unlock the social function and records a voice B to serve as voice data to be sent to the server.
Server side, S502: and calling a third-party voice recognition engine to convert the voice data into text data.
S503: and inputting the text data into a third-party word segmentation engine, and removing meaningless words to form a keyword set.
The third-party speech recognition engine and the third-party word segmentation engine are deployed in the server in advance, so that the server can provide speech matching service for users better, and the processing efficiency of the server is improved.
S504: a match score is calculated based on the set of keywords.
S505: if the matching score is greater than 75, it is considered that the voice matching is successful, the jump is performed S506.
S506: unlocking social functionality in the social application.
Therefore, the first user A and the second user B can use the social function of unlocking by means of the social application where the first user A and the second user B are located.
Referring to fig. 15, in an exemplary embodiment, step 733 may include the following steps:
step 7331, obtaining a first number of keywords in the first keyword set and a second number of keywords in the second keyword set.
Step 7333, determining an intersection of the first keyword set and the second keyword set, and obtaining a third number of keywords in the intersection.
Step 7335, performing matching degree calculation according to the sensitivity coefficient, the first number, the second number, and the third number to obtain a matching degree between the first keyword set and the second keyword set.
Specifically, as shown in fig. 16, the sensitivity coefficient is k, and is used to adjust the difficulty level of successful voice matching between the first user and the second user, and may be flexibly set according to the actual needs of the application scenario, which is not specifically limited herein.
The first keyword set is a keyword set A, and the number of the keywords in the keyword set A is a first number a.
The second keyword set is a keyword set B, and the number of the keywords in the keyword set B is a second number B.
Accordingly, the intersection (a ∞ B) of the first keyword set (keyword set a) and the second keyword set (keyword set B) is an intersection X, and the number of keywords in the intersection X is a third number X.
Thus, the matching score is calculated according to the following calculation formula (1):
y=[x2/(a×b)]×k(1)。
and y is a matching score, namely the matching degree between the first keyword set and the second keyword set, and reflects whether the voice matching between the first user and the second user is successful.
Taking the social function requested to be unlocked by the first user as the voice call function as an example, as shown in fig. 17, it is assumed that the first user is a female user and the second user is a male user.
Aiming at the voice data recorded by the female user, the text data obtained by voice recognition and conversion is as follows: "I really likes well-celebrated gourmet food, especially hot pot", and then word segmentation processing is carried out to form a keyword set which is: chongqing, cate and chafing dish.
Assuming that voice data recorded by a male user is subjected to voice recognition, the text data obtained by conversion is as follows: "what you are doing by sisters" and then word segmentation process, the formed keyword set is: sister, what to do.
It is easy to understand that the dialog between the female user and the male user is completely answered just, so that the matching score is only 40 through voice matching, the female user and the male user are considered to be not fortuitous, and therefore, the voice call function is unlocked unsuccessfully, and the female user and the male user cannot perform voice call.
Assuming that voice data recorded by another male user is subjected to voice recognition, the text data obtained by conversion is as follows: "many friends of I are in Chongqing, intend to go to travel in the next month, take the hot pot by the way", and then the word segmentation is processed, the key word set formed is: chongqing, travel, moon and chafing dish.
It can be seen that there is a common interest between the female user and the male user, and therefore, through the voice matching, the matching score is 80, it is considered that the female user and the male user have a certain tacit, and therefore, the voice call function is successfully unlocked, and the female user and the male user will perform a voice call.
Therefore, for friend making scenes, keywords, contexts and the like provided by social application have a crucial role in voice matching, so that the accuracy of voice matching is fully guaranteed, the embarrassing situation of communication between a female user and a male user is avoided, the practicability of a voice call function is improved, the use experience of the social application user is improved, and the viscosity of the social application user to social application is further enhanced.
The following is an embodiment of the apparatus of the present invention, which may be used to execute a method for unlocking a social function in a social application according to the present invention. For details that are not disclosed in the embodiment of the device of the present invention, please refer to the embodiment of the method for unlocking a social function in a social application according to the present invention.
Referring to fig. 18, in an exemplary embodiment, a social function unlocking device 900 in a social application includes, but is not limited to: a request initiating module 910, a voice sending module 930, a result receiving module 950, and a function unlocking module 970.
The request initiating module 910 is configured to initiate, by a first user, a social function unlocking invitation to a second user through a social application, where the social function unlocking invitation is used to indicate that the first user requests to unlock a social function.
The voice sending module 930 is configured to send, by the social application where the second user is located, the second voice data to the server according to the first voice data in the social function unlocking invitation.
The result receiving module 950 is configured to receive, by the social application, a matching result returned by the server according to the first voice data and the second voice data.
The function unlocking module 970 is configured to unlock, in the social application, the social function indicated by the social function unlocking invitation if the matching result indicates that the voice matching between the first user and the second user is successful.
Referring to fig. 19, in an exemplary embodiment, a social function unlocking device 1100 in a social application includes, but is not limited to: a data reception module 1110, a voice matching module 1130, and a result return module 1150.
The data receiving module 1110 is configured to receive, by a server, first voice data and second voice data, where the first voice data is carried in a social function unlocking invitation initiated by a first user to a second user through a social application, the second voice data is sent to the server by the social application where the second user is located according to the first voice data in the social function unlocking invitation, and the social function unlocking invitation is used to indicate a social function requested to be unlocked by the first user.
The voice matching module 1130 is configured to perform voice matching between the first user and the second user according to the first voice data and the second voice data, so as to obtain a matching result.
The result returning module 1150 is configured to return the matching result to the social application, so that the social application unlocks the social function indicated by the social function unlocking invitation according to the successful voice matching between the first user and the second user indicated by the matching result.
It should be noted that, when the social function unlocking device in the social application provided in the above embodiment performs the social function unlocking process in the social application, the above-mentioned division of the function modules is merely used as an example, and in practical applications, the above-mentioned function distribution may be completed by different function modules according to needs, that is, the internal structure of the social function unlocking device in the social application is divided into different function modules to complete all or part of the above-mentioned functions.
In addition, the social function unlocking device in the social application and the embodiment of the social function unlocking method in the social application provided by the above embodiments belong to the same concept, wherein specific ways of executing operations by the modules have been described in detail in the method embodiments, and are not described herein again.
Referring to fig. 20, in an exemplary embodiment, a social function unlocking device 1000 in a social application includes at least one processor 1001, at least one memory 1002, and at least one communication bus 1003.
Wherein the memory 1002 has computer readable instructions stored thereon, the processor 1001 reads the computer readable instructions stored in the memory 1002 through the communication bus 1003.
The computer readable instructions, when executed by the processor 1001, implement the method for unlocking a social function in a social application in the embodiments described above.
In an exemplary embodiment, a computer readable storage medium has a computer program stored thereon, and the computer program, when executed by a processor, implements a social function unlocking method in a social application in the above embodiments.
The above-mentioned embodiments are merely preferred examples of the present invention, and are not intended to limit the embodiments of the present invention, and those skilled in the art can easily make various changes and modifications according to the main concept and spirit of the present invention, so that the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (24)

1. A method for unlocking social functions in social applications is characterized by comprising the following steps:
a first user initiates a social function unlocking invitation to a second user through a social application, wherein the social function unlocking invitation is used for indicating a social function requested to be unlocked by the first user; the first user and the second user refer to social application users who have a conversation through social applications in which the first user and the second user are located;
the social application where the second user is located sends second voice data to the server according to the first voice data in the social function unlocking invitation;
the social application receives a matching result returned by the server according to the first voice data and the second voice data;
and if the matching result indicates that the voice matching between the first user and the second user is successful, unlocking the social function indicated by the social function unlocking invitation in the social application.
2. The method of claim 1, wherein prior to the first user initiating a social function unlock invitation to the second user through a social application, the method further comprises:
when the first user and the second user have a conversation through the social applications where the first user and the second user are located, a social function unlocking prompt message is generated and displayed in the social application where the first user is located, and the displayed social function unlocking prompt message prompts the social functions which can be unlocked in the social application of the first user.
3. The method of claim 1, wherein the first user initiating a social function unlock invitation to a second user through a social application, comprising:
detecting a first recording operation triggered by the first user for unlocking the social function;
recording the first voice data for the first user according to the first recording operation;
and initiating the social function unlocking invitation to the second user according to the first voice data, and sending the first voice data to the server.
4. The method of claim 1, wherein the sending, by the social application of the second user, second voice data to the server according to the first voice data in the social function unlocking invitation comprises:
the social application where the second user is located receives the social function unlocking invitation, and extracts the first voice data from the social function unlocking invitation;
detecting a second recording operation triggered by the second user according to the first voice data;
recording the second voice data for the second user according to the second recording operation;
and uploading the second voice data to the server.
5. The method of claim 1, wherein after the social application receives a matching result returned by the server from the first voice data and the second voice data, the method further comprises:
and displaying the matching result in the social application, and prompting whether the unlocking of the social function requested to be unlocked by the first user is successful or not through the displayed matching result.
6. The method of any one of claims 1 to 5, wherein the social function that the first user requests to unlock is a voice call function;
the unlocking, in the social application, the social function indicated by the social function unlocking invitation if the matching result indicates that the voice matching between the first user and the second user is successful, including:
if the matching result indicates that the voice matching between the first user and the second user is successful, establishing voice call connection between the first user and the second user;
and carrying out voice call between the first user and the second user in the social application through the established voice call connection.
7. A method for unlocking social functions in social applications is characterized by comprising the following steps:
the method comprises the steps that a server receives first voice data and second voice data, the first voice data are carried in a social function unlocking invitation initiated to a second user by a first user through a social application, the second voice data are sent to the server by the social application where the second user is located according to the first voice data in the social function unlocking invitation, and the social function unlocking invitation is used for indicating a social function requested to be unlocked by the first user; the first user and the second user refer to social application users who have a conversation through social applications in which the first user and the second user are located;
performing voice matching between the first user and the second user according to the first voice data and the second voice data to obtain a matching result;
and returning the matching result to the social application, so that the social application unlocks the social function indicated by the social function unlocking invitation according to the successful voice matching between the first user and the second user indicated by the matching result.
8. The method of claim 7, wherein said performing voice matching between said first user and said second user based on said first voice data and said second voice data to obtain a matching result comprises:
respectively extracting keywords from the first voice data and the second voice data to obtain a first keyword set and a second keyword set;
calculating the matching degree between the first keyword set and the second keyword set;
and comparing the matching degree with a matching threshold value to generate the matching result.
9. The method of claim 8, wherein input speech data is the first speech data or the second speech data, and output set data is the first set of keywords or the second set of keywords;
performing keyword extraction processing on the input voice data to obtain the output set data, including:
converting the input voice data into text data through voice recognition;
performing word segmentation processing on the text data to generate a word segmentation set;
and removing the meaningless participles in the participle set according to a preset dictionary to obtain the output set data.
10. The method of claim 9, wherein said performing keyword extraction processing on said input speech data to obtain said output set data further comprises:
and preprocessing the input voice data so that the voice recognition is performed on the preprocessed input voice data.
11. The method of claim 8, wherein said calculating a degree of match between said first set of keywords and said second set of keywords comprises:
acquiring a first number of keywords in the first keyword set and a second number of keywords in the second keyword set;
determining the intersection of the first keyword set and the second keyword set, and acquiring a third number of keywords in the intersection;
and calculating the matching degree according to the sensitivity coefficient, the first number, the second number and the third number to obtain the matching degree between the first keyword set and the second keyword set.
12. A social function unlocking device in a social application is characterized by comprising:
the request initiating module is used for a first user to initiate a social function unlocking invitation to a second user through a social application, the first user is in conversation with the second user through the social application, and the social function unlocking invitation is used for indicating the social function which the first user requests to unlock; the first user and the second user refer to social application users who have a conversation through social applications in which the first user and the second user are located;
the voice sending module is used for sending second voice data to the server by the social application where the second user is located according to the first voice data in the social function unlocking invitation;
the result receiving module is used for receiving a matching result returned by the server according to the first voice data and the second voice data by the social application;
and the function unlocking module is used for unlocking the social function indicated by the social function unlocking invitation in the social application if the matching result indicates that the voice matching between the first user and the second user is successful.
13. The apparatus of claim 12, wherein the apparatus further comprises:
and the message display module is used for generating a social function unlocking prompt message when the first user and the second user have a conversation through the social applications where the first user and the second user are located, displaying the social function unlocking prompt message in the social application where the first user is located, and prompting the social function which can be unlocked in the social application of the first user through the displayed social function unlocking prompt message.
14. The apparatus of claim 12, wherein the request initiation module comprises:
the first detection unit is used for detecting a first sound recording operation triggered by the first user for unlocking the social function;
a first recording unit, configured to record the first voice data for the first user according to the first recording operation;
and the first sending unit is used for initiating the social function unlocking invitation to the second user according to the first voice data and sending the first voice data to the server.
15. The apparatus of claim 12, wherein the voice transmission module comprises:
the request receiving unit is used for receiving the social function unlocking invitation by the social application where the second user is located and extracting the first voice data from the social function unlocking invitation;
the second detection unit is used for detecting a second sound recording operation triggered by the second user according to the first voice data;
a second recording unit, configured to record the second voice data for the second user according to the second recording operation;
and the second sending unit is used for uploading the second voice data to the server.
16. The apparatus of claim 12, wherein the apparatus further comprises:
and the result display module is used for displaying the matching result in the social application and prompting whether the unlocking of the social function requested to be unlocked by the first user is successful or not according to the displayed matching result.
17. The apparatus of any of claims 12 to 16, wherein the social function that the first user requested to unlock is a voice call function;
the function unlocking module includes:
a connection establishing unit, configured to establish a voice call connection between the first user and the second user if the matching result indicates that the voice matching between the first user and the second user is successful;
and the voice call unit is used for carrying out voice call between the first user and the second user in the social application through the established voice call connection.
18. A social function unlocking device in a social application is characterized by comprising:
the data receiving module is used for receiving first voice data and second voice data by a server, wherein the first voice data is carried in a social function unlocking invitation initiated by a first user to a second user through a social application, the second voice data is sent to the server by the social application where the second user is located according to the first voice data in the social function unlocking invitation, the first user is in conversation with the second user through the social application, and the social function unlocking invitation is used for indicating the social function which the first user requests to unlock; the first user and the second user refer to social application users who have a conversation through social applications in which the first user and the second user are located;
the voice matching module is used for performing voice matching between the first user and the second user according to the first voice data and the second voice data to obtain a matching result;
and the result returning module is used for returning the matching result to the social application so that the social application unlocks the social function indicated by the social function unlocking invitation according to the successful voice matching between the first user and the second user indicated by the matching result.
19. The apparatus of claim 18, wherein the voice matching module comprises:
the keyword extraction unit is used for respectively carrying out keyword extraction processing on the first voice data and the second voice data to obtain a first keyword set and a second keyword set;
the matching degree calculation unit is used for calculating the matching degree between the first keyword set and the second keyword set;
and the result generating unit is used for comparing the matching degree with a matching threshold value to generate the matching result.
20. The apparatus of claim 19, wherein input speech data is the first speech data or the second speech data, and output set data is the first set of keywords or the second set of keywords;
the keyword extraction unit includes:
a voice recognition subunit for converting the input voice data into text data by voice recognition;
the word segmentation processing subunit is used for carrying out word segmentation processing on the text data to generate a word segmentation set;
and the word segmentation removing subunit is used for removing the meaningless words in the word segmentation set according to a preset dictionary to obtain the output set data.
21. The apparatus of claim 20, wherein the keyword extraction unit further comprises:
and the preprocessing subunit is used for preprocessing the input voice data so that the voice recognition is performed on the preprocessed input voice data.
22. The apparatus of claim 19, wherein the matching degree calculation unit comprises:
a first obtaining subunit, configured to obtain a first number of keywords in the first keyword set and a second number of keywords in the second keyword set;
the second obtaining subunit is configured to determine an intersection of the first keyword set and the second keyword set, and obtain a third number of keywords in the intersection;
and the calculating subunit is used for calculating the matching degree according to the sensitivity coefficient, the first number, the second number and the third number to obtain the matching degree between the first keyword set and the second keyword set.
23. A social function unlocking device in a social application is characterized by comprising:
a processor; and
memory having stored thereon computer readable instructions which, when executed by the processor, implement a method of social function unlocking in social applications as claimed in any one of claims 1 to 11.
24. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements a method for unlocking social functions in a social application according to any one of claims 1 to 11.
CN201811071978.1A 2018-09-14 2018-09-14 Social function unlocking method and device in social application Active CN109286554B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811071978.1A CN109286554B (en) 2018-09-14 2018-09-14 Social function unlocking method and device in social application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811071978.1A CN109286554B (en) 2018-09-14 2018-09-14 Social function unlocking method and device in social application

Publications (2)

Publication Number Publication Date
CN109286554A CN109286554A (en) 2019-01-29
CN109286554B true CN109286554B (en) 2021-07-13

Family

ID=65181246

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811071978.1A Active CN109286554B (en) 2018-09-14 2018-09-14 Social function unlocking method and device in social application

Country Status (1)

Country Link
CN (1) CN109286554B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110322888B (en) * 2019-05-21 2023-05-30 平安科技(深圳)有限公司 Credit card unlocking method, apparatus, device and computer readable storage medium
CN111951118A (en) * 2020-07-24 2020-11-17 上海连尚网络科技有限公司 User social function adjusting method, device and computer readable medium
CN114173004B (en) * 2021-12-09 2023-05-30 北京安云世纪科技有限公司 Method, system, storage medium and computer device for intelligent regulation and control of social application

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105430018A (en) * 2015-12-30 2016-03-23 联想(北京)有限公司 Data processing method, control device and system
CN106409317A (en) * 2016-09-29 2017-02-15 北京小米移动软件有限公司 Somniloquy extraction method and apparatus, and apparatus for extracting somniloquy
CN107785021A (en) * 2017-08-02 2018-03-09 上海壹账通金融科技有限公司 Pronunciation inputting method, device, computer equipment and medium
CN107808077A (en) * 2017-10-31 2018-03-16 北京小米移动软件有限公司 For controlling the method, apparatus and storage medium of terminal unlocking function
CN108520760A (en) * 2018-03-27 2018-09-11 维沃移动通信有限公司 A kind of audio signal processing method and terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9634964B2 (en) * 2012-11-12 2017-04-25 Tencent Technology (Shenzhen) Company Limited Contact matching method, instant messaging client, server and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105430018A (en) * 2015-12-30 2016-03-23 联想(北京)有限公司 Data processing method, control device and system
CN106409317A (en) * 2016-09-29 2017-02-15 北京小米移动软件有限公司 Somniloquy extraction method and apparatus, and apparatus for extracting somniloquy
CN107785021A (en) * 2017-08-02 2018-03-09 上海壹账通金融科技有限公司 Pronunciation inputting method, device, computer equipment and medium
CN107808077A (en) * 2017-10-31 2018-03-16 北京小米移动软件有限公司 For controlling the method, apparatus and storage medium of terminal unlocking function
CN108520760A (en) * 2018-03-27 2018-09-11 维沃移动通信有限公司 A kind of audio signal processing method and terminal

Also Published As

Publication number Publication date
CN109286554A (en) 2019-01-29

Similar Documents

Publication Publication Date Title
CN107464557B (en) Call recording method and device, mobile terminal and storage medium
JP7143327B2 (en) Methods, Computer Systems, Computing Systems, and Programs Implemented by Computing Devices
EP3905057A1 (en) Online document sharing method and apparatus, electronic device, and storage medium
CN106446054B (en) A kind of information recommendation method, device and electronic equipment
US10091643B2 (en) Method and apparatus for displaying associated information in electronic device
US11050685B2 (en) Method for determining candidate input, input prompting method and electronic device
CN107731229B (en) Method and apparatus for recognizing speech
CN109286554B (en) Social function unlocking method and device in social application
US9843667B2 (en) Electronic device and call service providing method thereof
US10783874B2 (en) Method and apparatus for providing voice feedback information to user in call
WO2022037526A1 (en) Speech recognition method, apparatus, electronic device and storage medium
CN108875993B (en) Invitation behavior prediction method and device
US9172795B1 (en) Phone call context setting
CN113760145B (en) Interaction method, device, electronic equipment and storage medium
CN112395509A (en) Information display method, information providing method, apparatus, and computer-readable medium
CN111935111B (en) Interaction method and device and electronic equipment
WO2021088790A1 (en) Display style adjustment method and apparatus for target device
CN108322770B (en) Video program identification method, related device, equipment and system
CN103701994A (en) Automatic responding method and automatic responding device
CN112445906A (en) Method and device for generating reply message
CN110519373B (en) Method and device for pushing information
CN110502126B (en) Input method and electronic equipment
CN112242143B (en) Voice interaction method and device, terminal equipment and storage medium
CN109995543B (en) Method and apparatus for adding group members
KR20150103855A (en) Method and system of providing voice service using interoperation between application and server

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