Companion terminal friend establishing method and system based on near field communication

By generating a friend relationship identifier after a near-field communication touch and performing conflict analysis and repetition verification of voice address and nickname data, the problem of confusing friend entry points in screenless companion terminals is solved, and accurate invocation of children's natural voice is achieved.

CN123164584APending Publication Date: 2026-11-24HUNAN ANZHI NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611668901.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-27
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing methods for establishing friends on companion terminals based on near-field communication are prone to voice call confusion in screenless terminals, and do not generate voice address information corresponding to the friend relationship, making it difficult for children to call friends using their natural voice.

Method used

By receiving near-field touches from two companion terminals, a friend relationship identifier is generated. Candidate entry data is generated based on the child's voice address and/or the other party's publicly disclosed nickname. Conflict analysis and repetition verification are performed to ensure the uniqueness and reliability of the new friend entry.

Benefits of technology

It enables accurate voice calls to friends in screenless companion terminals, reduces the probability of entry point confusion, and improves the reliability and consistency of friend creation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123164584A_ABST
    Figure CN123164584A_ABST
Patent Text Reader

Abstract

This invention discloses a method and system for establishing friends on a companion terminal based on near-field communication (NFC), relating to the field of communication technology. The method, executed by the server, includes: addressing the issues of easily confused voice entry points and inconvenient natural voice calls after establishing friends on a screenless companion terminal via NFC, the server generates friend relationships after verifying near-field touch information from both ends, and generates candidate voice entry points by combining a child's address voice with the other end's publicly disclosed nickname; it completes screening for duplicate names, homophones, semantic overlap, and near-sound conflicts through multi-dimensional recognition data, and after confirming suspected near-sound items through repetition verification, it uniformly enables the entry point through a mechanism of dual-end version verification and synchronous confirmation; simultaneously, it can dynamically adjust the current entry point based on conflict feedback from actual voice calls and optimize the judgment parameters for subsequent friend establishment. Using the above technical solution, this invention effectively improves the reliability of friend establishment and the accuracy of voice friend calls on screenless companion terminals.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of communication technology, and in particular to a method and system for establishing companionship terminals based on near-field communication. Background Technology

[0002] With the development of smart companion devices, children's AI toys, and family interactive terminals, these terminals are no longer limited to single-player dialogue, voice reminders, or entertainment interaction. Instead, they are gradually acquiring social interaction capabilities between children and parents, and between children and friends. These terminals typically combine voice interaction, large-scale model intent recognition, server-side data processing, and local terminal broadcasting to achieve functions such as alarm clock reminders, voice messages, remote distribution, and friend interaction.

[0003] Existing AI companion terminals typically include: the terminal itself, a communication module, a server, a parent-facing mini-program or app, and device binding and management functions. The companion terminal itself is designed for companionship scenarios with teenagers and possesses basic capabilities such as voice interaction, network communication, device management, and parental control. The backend also includes interfaces for user management, device binding, data synchronization, and command issuance. Regarding friend creation, existing companion terminals can easily add friends via near-field communication (NFC). Specifically, two identical toys trigger sensing and exchange device information bidirectionally through NFC touch. The toy sends a friend request to the server. After verifying the device's legitimacy, the server, depending on whether parental confirmation is enabled, completes the friend relationship binding and synchronizes the friend lists of both toys. Alternatively, a friend request can be initiated by entering a friend's account or device information through the mini-program. After verification by the server, the friend relationship binding is completed and synchronized to both toys and the mini-program. Once the friend relationship is established, children can initiate messages via voice through the AI ​​toy. The system identifies the message's intent and target recipient, and then records, uploads, stores, distributes, and plays the message.

[0004] For example, Chinese invention patent CN105681161B discloses a method, apparatus, and system for adding friend accounts. The method includes: receiving a friend-adding instruction; broadcasting a friend-adding notification via a proximity communication component; receiving a friend-adding confirmation broadcast by a first wearable device via the proximity communication component, the friend-adding confirmation carrying an account identifier of a first account pre-bound and stored by the first wearable device; and sending the account identifier of the first account to a locally bound second terminal, so that the second terminal sends a friend-adding request for the first account to a server based on the account identifier of the first account.

[0005] For example, Chinese invention patent CN121750335A discloses a method, system, and device for making friends based on near-field communication (NFC). This includes: acquiring and broadcasting hardware identification information bound to a user account through a near-field communication module; when a first user terminal and a second user terminal enter the communication range, they mutually acquire each other's hardware identification information; the associated application of the first user terminal queries the server based on this information, and the server returns de-identified public information corresponding to the second user account to generate a first encounter record; the user can initiate a one-way friend addition command based on this record, and after confirmation by the other party, a formal friend relationship is established on the server side, and mutual access to complete contact information is authorized.

[0006] However, the above-mentioned technologies have at least the following technical problems:

[0007] Existing methods for establishing friends on companion devices based on near-field communication (NFC) typically focus on NFC touch, device information exchange, server verification, friend relationship writing, and friend list synchronization. The results mainly manifest as the synchronization of device identifier, account identifier, friend relationship identifier, and fixed nickname or parental notes. For screenless companion devices, children don't subsequently select friends by tapping the screen, but rather by speaking their friend's name. If, after NFC friend relationship writing but before the synchronization of the results, the corresponding friend's voice name information isn't generated, a problem can arise where the server has already written the friend relationship, but the companion device struggles to call the friend using the child's natural voice.

[0008] On the other hand, even if candidate friend voice names are generated after NFC friend relationships are written, directly synchronizing a single candidate name to the companion terminal without checking for name duplication, similar pronunciation, or semantic overlap with existing friend names on the device can easily lead to confusion between the voice entry points for new and existing friends. For example, if an existing friend's name is "Xiaoming" and a new friend's candidate name is "Xiaolin," the two can easily cause confusion in children's speech and voice recognition results. Without conflict verification and uniqueness processing, the friend entry point on the companion terminal may not be unique, affecting the effective establishment of new NFC friends on the companion terminal. Summary of the Invention

[0009] This invention provides a method and system for establishing friends on a companion terminal based on near-field communication. Addressing the issues of easily confused voice entry points and inconvenient natural voice invocation after adding friends on a screenless companion terminal via near-field communication, the method receives near-field touch reports from two companion terminals, verifies and matches them to generate a friend relationship identifier; generates candidate entry data based on a child's address and / or the other party's publicly disclosed nickname, generates entry recognition data, and performs conflict analysis with the existing friend entry set on the local terminal; performs repetition verification on suspected similar-sounding items to determine the primary address of the newly added friend; after both terminals generate entry data to be effective, it is simultaneously activated through entry version verification and a dual-terminal saving confirmation mechanism, achieving accurate voice invocation of friends on the screenless companion terminal, effectively reducing the probability of entry confusion and improving the reliability of friend establishment.

[0010] According to one aspect of the present invention, a method for establishing a companion terminal friend based on near-field communication is provided, comprising:

[0011] The system receives the device identifier, peer device identifier, and near-field touch session identifier reported by two companion terminals after they touch each other in near-field communication. When the peer device identifier reported by one companion terminal corresponds to the device identifier reported by the other companion terminal, and the near-field touch session identifiers reported by the two companion terminals are the same, a near-field friend establishment record is generated.

[0012] Generate a friend relationship identifier based on the near-field friend establishment record, and save the friend relationship identifier as a record to be processed at the entry point.

[0013] Two companion terminals are used as the local terminals, and candidate entry data are generated based on the children's voice names collected by the local terminals and / or the publicly available nicknames of the other terminals.

[0014] For each candidate entry data, entry identification data is generated.

[0015] The entry point identification data is compared with the existing friend entry point set on this platform to obtain the entry point hit analysis results. The entry point hit analysis results include no hit, hard conflict, or suspected near-sound items.

[0016] Repeat the verification of suspected near-sound items to obtain the verification results, including near-sound conflicts or near-sound verification passed.

[0017] From the candidate entry data where the entry hit analysis result is "missed" or the repeat verification result is "passed near-sound verification", determine the corresponding new friend's main name for this client.

[0018] Based on the new friend's main name in this client, generate the entry data for the client that is yet to be activated.

[0019] After both companion terminals generate pending entry data, the pending entry data carrying the entry version number is sent to both companion terminals respectively. After both companion terminals return a save confirmation for the same friend relationship identifier and the same entry version number, an activation command is issued, so that the two companion terminals respectively enable the newly added friend entry in the saved pending entry data as a locally available friend entry.

[0020] According to another aspect of the present invention, a companion terminal friend-building system based on near-field communication is provided, comprising:

[0021] The near-field friend creation module is used to receive the self-device identifier, peer device identifier, and near-field touch session identifier reported by the two companion terminals after near-field communication touch, and to generate a near-field friend creation record and friend relationship identifier when the content reported by the two companion terminals matches.

[0022] The voice entry generation module is used to take two companion terminals as local terminals, generate candidate entry data based on the child's address voice collected by the local terminal and / or the publicly disclosed nickname of the other terminal, and generate corresponding entry recognition data.

[0023] The entry conflict handling module is used to compare the entry identification data with the existing friend entry set on the local end, to obtain the missing, hard conflict or suspected near-sound items, and to perform repeated verification on the suspected near-sound items to determine the corresponding new friend's main name on the local end.

[0024] The entry synchronization module is used to generate local entry data to be activated based on the new friend's name. After both companion terminals return a save confirmation for the same friend relationship identifier and the same entry version number, it issues an activation command so that the two companion terminals can activate the new friend entry in the saved entry data to be activated as a locally available friend entry.

[0025] The feedback adjustment module is used to receive feedback conflict records uploaded by the companion terminal during actual voice calls, adjust the newly added friend entry based on the feedback conflict records, and update the entry establishment adjustment parameters for subsequent friend entry establishment.

[0026] The beneficial effects achieved by the technical solutions provided in the embodiments of the present invention include at least the following:

[0027] (1) After establishing a friend relationship through near-field communication, a voice friend entry bound to the friend relationship identifier is generated, so that the screenless or weak screen companion terminal can accurately call the corresponding friend through the child's natural name, avoiding the problem of only establishing a friend relationship but not being able to call it by voice later.

[0028] (2) By converting candidate entry data into a sequence of standard text keys, homophone keys, address core keys and syllables, and performing conflict analysis with the existing friend entry set on this end, we can eliminate duplicate names, homophones, overlapping semantics of titles and suspected near-homophones in advance, and reduce the probability of confusion between new friend entry and existing friend entry.

[0029] (3) By repeating and verifying suspected similar-sound items, and saving the same friend relationship identifier and the same entry version number on both ends before enabling the new friend entry, the problems of accidental activation, premature activation on one end and inconsistent entry versions can be reduced, and the reliability of synchronous activation of friend entry can be improved.

[0030] (4) By uploading feedback conflict records during actual voice calls and adjusting the parameters for creating new friend entry points and subsequent entry points based on the conflict situation, the confusion issues discovered during use can have a reverse effect on the subsequent friend creation process, reducing the recurrence of similar name conflicts.

[0031] It should be understood that the content described in this section is not intended to identify key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Attached Figure Description

[0032] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0033] Figure 1 This is a flowchart of a method for establishing a companion terminal friend based on near-field communication according to Embodiment 1 of the present invention;

[0034] Figure 2 This is a flowchart of candidate entry point selection and parameter configuration provided in Embodiment 1 of the present invention;

[0035] Figure 3 This is a flowchart of the actual voice call feedback adjustment for adding new friends entry provided in Embodiment 2 of the present invention;

[0036] Figure 4 This is a flowchart of abnormal branch and boundary processing provided in Embodiment 3 of the present invention. Detailed Implementation

[0037] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0038] The companion terminal friend establishment method based on near-field communication provided in Example 1 mainly includes steps such as near-field touch reporting, friend relationship identifier generation, candidate entry data generation, entry identification data comparison, suspected near-sound item repetition verification, and dual-end confirmation activation. The following is combined with... Figure 1 The method will be explained.

[0039] This embodiment provides a method for establishing near-field friend entry points for screenless or low-screen companion terminals. The companion terminal can be a child companion robot, a voice-activated toy, a child communication terminal, or other terminals with voice interaction capabilities. The method is executed collaboratively by a server, a first companion terminal, a second companion terminal, and an optional parent terminal. Both the first and second companion terminals are equipped with near-field communication, voice acquisition, voice playback, local entry point storage, and network communication functions. The server performs the following operations through its functional units: receiving near-field touch reports from the two companion terminals and generating near-field friend establishment records and friend relationship identifiers; generating candidate entry point data based on the child's address and / or the other party's publicly known nickname and generating corresponding entry point recognition data; comparing the entry point recognition data with the existing friend entry point set on the server and verifying suspected near-sound items by repeating the pronunciation; after generating pending entry point data for both companion terminals on the server, sending the pending entry point data and processing, saving, and confirming it; and adjusting the newly added friend entry point based on feedback conflict records after it is enabled.

[0040] In this embodiment, near-field communication is used to enable two companion terminals to quickly confirm each other and establish an initial record of a friend relationship; the voice entry is used by the child to call the corresponding friend through natural voice in subsequent use. Since children may use nicknames, pet names, terms of address, or similar-sounding names, and it is inconvenient for screenless companion terminals to allow children to select friends through a screen list, this embodiment first processes the child's on-site voice, the other end's publicly disclosed nickname, and the existing friend entry on this end into comparable entry data before enabling the friend entry, and completes conflict analysis, similar-sounding repetition verification, entry adjustment, and dual-end confirmation synchronization before writing.

[0041] In this embodiment, "local end" refers to the companion terminal currently establishing a locally available friend entry point, and "peer end" refers to another companion terminal that has established a friend relationship with "local end". For the first companion terminal, the local entry point is used to call the second companion terminal; for the second companion terminal, the local entry point is used to call the first companion terminal. The first and second companion terminals each have different sets of existing local friend entries. Therefore, the server performs entry conflict analysis and entry adjustment for both ends respectively.

[0042] In this embodiment, the friend entry includes a primary friend name and available aliases. The primary friend name is used to preferentially indicate the friendship relationship when called by a child's voice; available aliases allow the child to use other natural names to identify the same friend relationship, provided it does not conflict with existing friend entries on this device. Each friend entry is bound to a friend relationship identifier and stores corresponding entry identification data. The entry identification data includes at least a standard text key, a homophone key, a name core key, and a syllable sequence.

[0043] The server sets the status for the entry point creation process. The status of near-field friend creation records includes generated, discarded, and merged; the friend relationship status includes pending parental confirmation, rejected, pending entry point processing, pending entry point supplementation, pending activation, pending resend, and entry point enabled.

[0044] The first and second companion terminals exchange device identifiers during a near-field communication (NFC) touch. NFC can be NFC technology, Bluetooth near-field broadcast, UWB near-field discovery, or other communication methods capable of confirming proximity between two terminals. The NFC touch session identifier is generated by one companion terminal at the start of the touch and sent to the other. Both the first and second companion terminals carry the same NFC touch session identifier when reporting to the server.

[0045] The first companion terminal reports its device identifier, the peer device identifier received during near-field communication, and the near-field touch session identifier to the server. The second companion terminal reports its device identifier, the peer device identifier received during near-field communication, and the near-field touch session identifier to the server. The server compares the reported content from both ends: if the peer device identifier reported by the first companion terminal is equal to the second companion terminal's device identifier, the peer device identifier reported by the second companion terminal is equal to the first companion terminal's device identifier, and the near-field touch session identifiers reported by both ends are the same, then the reported content from both ends is determined to belong to the same near-field touch, and a near-field friend establishment record is generated. This near-field friend establishment record includes the first companion terminal's device identifier, the second companion terminal's device identifier, and the near-field touch session identifier. If any comparison condition is not met, the server marks the reported content as discarded and does not proceed to the friend establishment process.

[0046] If the server already has a record of creating a near-field friend corresponding to the same near-field touch session identifier, the server will not generate a new near-field friend creation record. If subsequent reports appear with the same near-field touch session identifier but different device identifier combinations, the server will mark the report as a session identifier conflict report and will not change the already generated near-field friend creation record.

[0047] The server reads the account binding information of the first and second companion terminals. This account binding information includes the device identifier, the corresponding child's or family account, whether friends are allowed to display public nicknames, the content of the public nicknames, and whether parental confirmation is required for friend requests. If neither the first nor the second companion terminal requires parental confirmation, the server directly generates a friend relationship identifier based on the device identifiers of the first and second companion terminals and the account binding information of both parties.

[0048] If at least one of the first companion terminal and the second companion terminal requires parental confirmation, the server sends a friend request to the parent terminal corresponding to the one or both of the terminals requiring parental confirmation based on the near-field friend establishment record. The server only generates a friend relationship identifier based on the device identifiers of the first companion terminal, the second companion terminal, and the account binding information of both parties after all the parents requiring confirmation have confirmed their consent. If any parent terminal corresponding to a terminal requiring parental confirmation returns a rejection or fails to respond within the timeout period, the server marks this friend establishment process as rejected and does not generate a friend relationship identifier.

[0049] The friend relationship identifier is a unique identifier generated by the server to indicate the friend relationship between the first companion terminal and the second companion terminal. This friend relationship identifier is subsequently used to bind the voice entry point, synchronize the entry point version, and determine the target friend for leaving a message or interacting when a child's voice is triggered.

[0050] After generating a friend relationship identifier, the server does not immediately synchronize available friend entries to any companion terminal. Instead, it saves the friend relationship identifier as a pending entry processing record. The server generates pending voice entry records for both the first and second companion terminals. Each pending voice entry record includes the local device identifier, the peer device identifier, the friend relationship identifier, the collection status, and the record version. The server can send a name collection instruction to the corresponding companion terminal, including the friend relationship identifier, the collection prompt identifier, and the collection validity period. After receiving the name collection instruction, the companion terminal plays a prompt through its voice playback module to prompt the child on the local terminal to say how they want to address the peer companion terminal.

[0051] like Figure 2As shown, during the candidate entry generation and parameter configuration process, the accompanying terminal collects the child's spoken address and performs speech recognition. The server configures different effective confidence thresholds for address collection for children of different age groups, including a standard threshold applicable to general children and a younger threshold applicable to younger children; the younger threshold is lower than the standard threshold.

[0052] For younger children, if the highest confidence score of the first collection is lower than the standard threshold but not lower than the younger age threshold, the server issues a second collection instruction; if the same candidate text appears in the top-ranked candidate texts (not exceeding the preset number) in both collections, and the sum of the confidence scores of the candidate text in the two collections is not lower than the preset cumulative confidence score threshold, then the candidate text is allowed to enter the candidate entry data.

[0053] The server retrieves candidate texts from the speech recognition results, ranked from highest to lowest confidence level, with a maximum number not exceeding a preset limit. Each candidate text carries its corresponding confidence level, candidate number, and friend relationship identifier. If the difference between the highest and second-highest confidence levels is less than the candidate confidence difference threshold, the server includes both of the top two candidate texts in the candidate entry data. If the difference is greater than or equal to the candidate confidence difference threshold, the server only includes the first-ranked candidate text in the candidate entry data.

[0054] If the companion device fails to capture the child's spoken name within the valid collection time, or if the voice recognition result is empty, or if the highest confidence level of the voice recognition result is lower than the preset valid confidence level, the server will not generate candidate entry data originating from the child's voice. In this case, the server continues to read the publicly displayed nicknames allowed to be shown to friends in the peer device's bound information. If the peer device has not set a publicly displayed nickname or the publicly displayed nickname is empty, the server records this peer device as a name to be supplemented.

[0055] The server performs text preprocessing on each child's voice candidate text, including removing introductory words, removing titles, removing spaces and punctuation, converting numbers, converting between full-width and half-width characters, and removing words without semantic pauses. Introductory words are guiding phrases that children add when expressing their intention to address someone, but do not indicate the specific content of the address, such as "I want to call him / her" or "I'll call him / her later."

[0056] For example, if the candidate text after a child's speech recognition is "I want to call him Brother Xiaoming", after text preprocessing, the leading words "I want to call him" are removed to get "Brother Xiaoming". Then, the closing title word "brother" is removed to get the title stem "Xiaoming". This "Xiaoming" is used as the candidate entry data with the child's speech stem as the source.

[0057] The processed text contains the child's title or address. If the text is not empty, the server uses it as a candidate entry point for a child's speech; if the text is empty, the server does not generate any candidate entry points for a child's speech. If the text contains titles such as "brother," "sister," "younger brother," "younger sister," "classmate," or "friend" at the beginning or end, the server also generates candidate entry points for the child's speech backbone.

[0058] The server also reads the publicly displayed nicknames allowed to be shown to friends from the peer device's bound information and performs text preprocessing on these nicknames. If the processed publicly displayed nickname is not empty, the server uses it as candidate entry data with publicly displayed nicknames as the source. If the local device does not collect a valid child's address voice and the peer device's publicly displayed nickname is unavailable, the server records the local device as a supplementary address record. When the same local device generates one or more candidate entry data, each candidate entry data includes the local device identifier, the peer device identifier, the friend relationship identifier, the address text, and the candidate source. Candidate entry data with a child's voice or a child's voice backbone as the source also includes the candidate sequence number, recognition confidence, and the original candidate text; candidate entry data with a publicly displayed nickname as the source may also include the publicly displayed nickname record identifier, display priority, or storage time. A publicly displayed nickname refers to a nickname that the server has stored and that is allowed to be shown to friends from the peer device's bound information. When the child on the local device does not provide a valid address voice or the voice recognition result is empty, the server uses publicly displayed nicknames as a supplementary source of candidate entry data. The server removes duplicate entries with identical names from the same local candidate entry data. If duplicate entries come from different sources, the one with the higher priority is retained; the source priority is, in descending order: children's voice, children's voice backbone, and public nickname. If duplicate entries come from the same source, the one with the higher recognition confidence is retained; if the recognition confidence is the same, the one with the earlier candidate number is retained.

[0059] The server generates entry identification data for the first and second companion terminal candidate entry data, respectively. Entry identification data includes a standard text key, a homophone key, a form of address key, and a syllable sequence. The standard text key is obtained from the form of address text after the following preprocessing steps: removing all spaces and punctuation marks from the form of address text; converting Chinese numerals in the string to Arabic numerals; and converting full-width characters to half-width characters. If the standard text key is empty, the candidate entry data is marked as invalid and will not participate in subsequent conflict analysis.

[0060] The homophone key is obtained by converting the standard text key into a pinyin syllable string without tones. To avoid ambiguity caused by syllable connection, the server uses separators to connect the pinyin syllables, for example, converting "Xiao Ming" into "xiao-ming". When there are polyphonic characters in the standard text key, the server prioritizes the pronunciation information carried by the speech recognition result; if the speech recognition result does not carry pronunciation information, the common pronunciation corresponding to the text entry in the preset pinyin dictionary is adopted, and the pronunciation source is recorded. If the homophone key in the entry recognition data is generated by the companion terminal and then sent to the server, the server rechecks the homophone key based on the same pinyin dictionary or the same speech recognition pronunciation result. When the homophone key rechecked by the server is inconsistent with the homophone key sent by the companion terminal, the homophone key generated by the server is used as the basis for entry hit analysis, pre-write recheck, and synchronous storage. When the server generates or rechecks the homophone key, it invokes the pronunciation rules corresponding to the local device identifier, child account identifier, or service region. The pronunciation rules include at least one of the Mandarin pinyin dictionary, regional pronunciation adaptation dictionary, and pronunciation information carried by the speech recognition result.

[0061] The address trunk key is used to represent the semantic trunk of the entry after removing address terms. When the front end or end of the standard text key contains address terms such as "brother", "classmate", or "friend", the server deletes the address term and obtains non-empty text, which is used as the address trunk key. If the standard text key does not contain the above address terms, or is empty after deleting the address terms, the address trunk key is empty.

[0062] The syllable composition sequence is obtained by splitting the homophone key. The server splits each pinyin syllable in the homophone key into an initial consonant part and a final part, and retains the position order of each syllable. For example, the syllable composition sequence of "xiao-ming" includes the initial consonant "x" and the final "iao" of the first syllable "xiao", as well as the initial consonant "m" and the final "ing" of the second syllable "ming". The syllable composition sequence is only used to determine whether there is a suspected near-phonetic difference at the single-syllable position between the candidate entry and the existing entry, and is not directly used as a hard conflict key.

[0063] The server reads the existing friend entry set on its own end. Specifically, when the first companion terminal is considered the local end, the existing friend entry set includes all currently active friend names, available aliases, friend relationship identifiers corresponding to each entry, entry location, entry version number, and entry identification data. When the second companion terminal is considered the local end, the existing friend entry set includes the corresponding data currently active on the second companion terminal. The entry location is used to distinguish whether an existing entry is a main name or an available alias. If historically saved existing friend entry entries do not store entry identification data, the server generates and saves it immediately according to the rules for generating entry identification data in this embodiment, ensuring that new entries use the same comparison criteria as existing entries. Based on the entry identification data, the server determines whether a candidate entry has the same name, pronunciation, semantic overlap, or similar pronunciation as existing friend entry entries on its own end, in order to determine whether the candidate entry can be used as a new friend entry.

[0064] The server performs entry point hit analysis using the first companion terminal and the second companion terminal as its local terminals. For any candidate entry point data, the server compares its entry point identification data with each existing entry point in the local friend entry point set: if the candidate entry point's standard text key is the same as any existing entry point's standard text key, the server records it as a hard name conflict. If the candidate entry point's homophone key is the same as any existing entry point's homophone key, the server records it as a hard homophone conflict. If the candidate entry point's title core key is not empty, and this title core key is the same as any existing entry point's standard text key or title core key, the server records it as a hard title semantic overlap conflict. If an existing entry point's title core key is not empty, and the candidate entry point's standard text key is the same as that existing entry point's title core key, the server also records it as a hard title semantic overlap conflict, to cover the case where a new entry point does not have a title and an existing entry point does.

[0065] When the same candidate entry meets multiple hard conflict conditions simultaneously, the server retains all hit details and, according to the priority order of name duplication, homophony, and semantic overlap of titles, selects the hard conflict with the highest priority as the final hit status of that candidate entry. Hard conflicts include name duplication, homophony, and semantic overlap of titles. For hard conflict candidate entries, the server does not perform near-phonetic repetition verification because the candidate entry can no longer be directly used as the main title or available alias for adding friends.

[0066] If no hard conflict exists between the candidate entry and an existing entry, the server continues to determine whether the candidate entry forms a suspected near-phonetic item with any existing entry. The conditions for generating a suspected near-phonetic item are: the candidate entry and an existing entry have the same number of syllables; they have different homophones; and they differ in only one syllable position in terms of initial consonant and / or final vowel, and this difference belongs to at least one of the following: z vs. zh, c vs. ch, s vs. sh, l vs. n, in vs. ing, en vs. eng, an vs. ang. When all four conditions are met, the server records it as a suspected near-phonetic item. If any condition is not met, no suspected near-phonetic item is recorded.

[0067] If two names differ in the position of more than two syllables, even if each difference falls within the aforementioned easily confused range, the server will not record it as a suspected near-sound item. For example, if a candidate entry and an existing entry differ in the position of l and n, or in and ing, respectively, the condition of "only one syllable differs" is not met, and the name will not be included in the repetition verification. This process avoids directly expanding a wide range of near-sound items into hard conflicts.

[0068] If there are no hard conflicts or suspected near-homophones among the candidate entry points, the server records the candidate entry point as a miss. If there are no hard conflicts among the candidate entry points but one or more suspected near-homophones, the server records the candidate entry point as pending verification and saves the candidate entry text corresponding to the suspected near-homophone, the text of the existing entry point that has been matched, the existing friend relationship identifier, the entry point position, and the existing entry point version number. The existing entry point version number is used to determine whether the verification result still corresponds to the same existing entry point during subsequent pre-write verification.

[0069] The server verifies the similar-sounding words for each local terminal. If no similar-sounding word is found in the candidate entry, the verification is skipped, and the result is either a hard conflict or a miss. If a similar-sounding word is found in the candidate entry, the server sends a repeat-sounding collection command to the local companion terminal. The command includes a friend relationship identifier, the candidate entry text, a similar-sounding word identifier, and a prompt. The companion terminal then plays a prompt based on the command, such as asking the child to repeat the candidate entry text.

[0070] The accompanying terminal collects repeated speech and sends the candidate texts, arranged from high to low confidence level and not exceeding a preset number, along with the corresponding confidence level of each candidate text, to the server. Before comparing the repeated speech recognition results, the server first determines whether the repeated speech meets preset valid conditions. The preset valid conditions include: the duration of the repeated speech is within a preset duration range, the noise intensity of the repeated speech is lower than a preset noise threshold, the highest confidence level in the repeated speech recognition result is not lower than the lower limit of the repeat confidence level, and the number of times the same suspected near-sound item is repeated does not exceed a preset number of re-sampling attempts. If the repeated speech meets the preset conditions for valid repeated speech, the server performs the same text preprocessing as the candidate entry data on the candidate text in the repeated speech recognition result to obtain the standard text for repeated speech, and compares the standard text for repeated speech with the existing entry text and candidate entry text that are suspected to be near-sound items. If the repeated speech does not meet the preset conditions for valid repeated speech, the server does not determine the suspected near-sound item as a near-sound verification pass, and reissues the repeated speech collection instruction to the local companion terminal. If the preset conditions for valid repeated speech are still not met after the number of re-sampling times is not less than the preset number of re-sampling times, the candidate entry will not be used as the main name of the new friend or the available nickname of the new friend for the time being.

[0071] If the first candidate text in the repeated speech recognition result, after preprocessing, is equal to the existing entry text of the suspected near-sound item, or if the recognition confidence of the existing entry text of the suspected near-sound item in the repeated speech recognition result is higher than the recognition confidence of the candidate entry text, then the server confirms the suspected near-sound item as a near-sound conflict. The first candidate text is the candidate text with the highest confidence returned by the speech recognition engine after the child says the name during the repeated verification stage. If the existing entry text does not appear in the repeated speech recognition result, its recognition confidence is treated as zero; if the candidate entry text does not appear in the repeated speech recognition result, its recognition confidence is treated as zero. If none of the above near-sound conflict judgment conditions are met, the server records the suspected near-sound item as having passed near-sound verification and does not consider it a conflict.

[0072] If a candidate entry point corresponds to multiple suspected near-phonetic items, the server will determine the entry point verification result of that candidate entry point as a near-phonetic conflict as soon as any one of the suspected near-phonetic items is confirmed as a near-phonetic conflict. Only when all suspected near-phonetic items corresponding to that candidate entry point pass the near-phonetic verification will the server determine the entry point verification result of that candidate entry point as a near-phonetic verification passed.

[0073] If the companion terminal does not collect the repeated voice, the repeated voice recognition result is empty, or the repeated voice recognition result does not meet the preset repeated valid conditions, then this candidate entry will not be used as the main name of the new friend, nor as an available nickname for the new friend; the server will retain the record to be collected again, and will re-enter the candidate entry data generation step after the child provides the name voice again.

[0074] The server generates entry verification results for candidate entry points based on entry point hit analysis and repeat verification results. For candidate entry points where the entry point hit analysis result is not found, the server determines the entry verification result as not found; for candidate entry points where the entry point hit analysis result is a hard conflict, the server determines the entry verification result as a hard conflict; for suspected near-sound items, the server determines the entry verification result as a near-sound conflict or near-sound verification passed based on the repeat verification result. The server performs new entry point adjustments for the first and second companion terminals respectively based on the entry verification results. The server determines the new friend's main name according to the priority of the candidate source, with the priority of candidate source as follows: child's voice, child's voice backbone, and public nickname. Candidate entry data is only used as the new friend's main name or new friend's available nickname when the entry point hit analysis result is not found or the repeat verification result is near-sound verification passed. For any local terminal, the server first searches for candidate entry points from the candidate entry data with a child's voice source that have an entry verification result of not found or near-sound verification passed. If at least one candidate entry exists, the candidate entry with the highest recognition confidence is selected as the new friend's main name; if the recognition confidence is the same, the candidate entry with the earlier candidate number is selected as the new friend's main name.

[0075] If no available child voice candidate entry is found, the server searches for candidate entry entries from the child voice backbone data that have either failed verification or passed near-sound verification. If at least one such entry exists, the candidate entry with the highest recognition confidence in its corresponding original child voice candidate text is selected as the new friend's main name. If the recognition confidence is the same, the candidate entry with the higher original candidate number is selected as the new friend's main name.

[0076] If no usable candidate entry point for the child's voice backbone is found, the server searches for candidate entry points from the public nickname source data that have either failed verification or passed near-sound verification. If found, this public nickname candidate entry point is used as the primary name for adding a new friend. If multiple public nickname candidate entry points exist, the one with the highest priority is selected based on the display priority recorded in the public nickname record; if multiple public nicknames have the same display priority or none are configured with a display priority, the one saved most recently is selected based on the save time; if both display priority and save time are the same, either one is used.

[0077] If no available candidate entry point is found to have failed verification or passed near-sound verification, and the candidate entry point has a hard conflict or near-sound conflict with an existing friend entry point, the server will not delete the existing friend entry point, nor will it directly use the candidate entry point as the primary name for the new friend. The server further determines: if the existing entry point with the conflict has a primary name, it will directly send a differentiated name collection command to the local companion terminal; if all the existing entry points with the conflict are available alternative names, it will also send a differentiated name collection command to the local companion terminal. The server prompts the child to say a name different from the existing friend's name. The re-collected name voice is returned to the candidate entry point data generation, entry point recognition data generation, entry point hit analysis, and repeat verification steps for reprocessing. If the reprocessed entry point results in a failed verification or passed near-sound verification, the server will use the candidate entry point as the primary name for the new friend. If a hard conflict or near-sound conflict still exists after re-collection, or if no valid child voice is collected, the server will not enable the new friend entry point on the local terminal, but will mark the processing status of the corresponding friend entry point on the local terminal as a name record to be supplemented. After the child provides a name or voice address again, the server will re-enter the candidate entry data generation step based on the same friend relationship identifier.

[0078] After determining the primary name for the new friend, the server will use the candidate entry data that has failed verification or passed the near-phonetic verification and is different from the primary name text as available alternative names for the new friend.

[0079] The server performs pre-write verification on both the first and second companion terminals. For any local terminal, if the entry adjustment result is a record to be supplemented with a name, then no entry data to be activated is generated for that local terminal; if the entry adjustment result includes a new friend's main name, the server rereads the current set of friend entry points for the local terminal and regenerates entry identification data for the new friend's main name and available aliases, comparing it with the current set of friend entry points for the local terminal. If the new friend's main name conflicts with an available alias of an existing friend entry, or if the new friend's available alias conflicts with the main name or available alias of an existing friend entry, then the server determines it to be an alias conflict.

[0080] If the aforementioned conflict occurs during the pre-writing review of a newly added friend's primary name, the server will not generate the pending entry data on its own end and will either re-determine the primary name of the newly added friend or wait for the local companion terminal to re-collect the child's voice address. If the aforementioned conflict occurs during the pre-writing review of a newly added friend's available alias, the server will delete the available alias of the newly added friend and will not write it into the pending entry data. The server deletes the candidate aliases of the newly added friend, but does not delete the existing primary names or available aliases in the existing friend entry set on the local end.

[0081] If either client only has a name record to be added but no entry data to be activated, the server will keep the friend relationship in the state of pending entry data addition. The server will then perform dual-end confirmation and synchronization after both the first and second companion terminals have generated entry data to be activated.

[0082] If the server generates pending entry data for both the first and second companion terminals, it generates an entry version number for this pending entry data and binds it to the friend relationship identifier, the local device identifier, the peer device identifier, and the content of the pending entry data. The server then sends the corresponding pending entry data to the first and second companion terminals respectively. Each synchronization packet carries the friend relationship identifier, entry version number, local device identifier, peer device identifier, new friend's main name, new friend's available aliases, and entry identification data.

[0083] After receiving the entry data to be activated, the companion terminal verifies whether the local device identifier in the synchronization packet is equal to its own device identifier, whether the friend relationship identifier corresponds to the entry processing relationship sent by the server, and whether the entry version number is not lower than the version number of the friend relationship entry already saved locally. If the verification passes, the companion terminal saves the new friend entry as the entry data to be activated and returns a save confirmation to the server.

[0084] After receiving confirmation from both the first and second companion terminals that they have saved the same friend relationship identifier and the same entry version number, the server sends an activation command to both ends. The activation command carries the friend relationship identifier and the entry version number. Upon receiving the activation command, both ends check whether the entry data corresponding to the friend relationship identifier and entry version number exists locally. If it exists, the entry data to be activated is converted into a locally available friend entry in the same local write operation.

[0085] After both terminals have enabled the entry point based on the same entry point version number, the server updates the friend relationship status to "entry point enabled" and records the locally available friend entry points on the first and second companion terminals as the enabled entry points corresponding to the entry point version number. From this point on, the first companion terminal can call the second companion terminal through its local child voice entry point, and the second companion terminal can call the first companion terminal through its local child voice entry point. The aforementioned candidate confidence difference threshold, effective confidence threshold for address collection, effective repeat conditions, preset number of times, first preset step size, second preset step size, and preset confirmation time are all determined by server-side configuration parameters and saved in correspondence with the local device identifier, child account identifier, or entry point version number. This ensures consistent judgment criteria during subsequent entry point hit analysis, pre-write review, and feedback adjustment.

[0086] This embodiment also provides a companion terminal friend creation system based on near-field communication, including:

[0087] The near-field friend creation module is used to receive the self-device identifier, peer device identifier, and near-field touch session identifier reported by the two companion terminals after near-field communication touch, and to generate a near-field friend creation record and friend relationship identifier when the content reported by the two companion terminals matches.

[0088] The voice entry generation module is used to take two companion terminals as local terminals, generate candidate entry data based on the child's address voice collected by the local terminal and / or the publicly disclosed nickname of the other terminal, and generate corresponding entry recognition data.

[0089] The entry conflict handling module is used to compare the entry identification data with the existing friend entry set on the local end, to obtain the missing, hard conflict or suspected near-sound items, and to perform repeated verification on the suspected near-sound items to determine the corresponding new friend's main name on the local end.

[0090] The entry synchronization module is used to generate local entry data to be activated based on the new friend's name. After both companion terminals return a save confirmation for the same friend relationship identifier and the same entry version number, it issues an activation command so that the two companion terminals can activate the new friend entry in the saved entry data to be activated as a locally available friend entry.

[0091] The feedback adjustment module is used to receive feedback conflict records uploaded by the companion terminal during actual voice calls, adjust the newly added friend entry based on the feedback conflict records, and update the entry establishment adjustment parameters for subsequent friend entry establishment.

[0092] Example 2

[0093] like Figure 3 As shown, in this embodiment, after the new friend entry is enabled, a feedback conflict record is generated based on the actual voice call input. The server then adjusts the new friend entry based on the feedback conflict record and updates the entry establishment adjustment parameters used in the subsequent friend entry establishment process.

[0094] This example illustrates the feedback adjustment process after the new friend entry is enabled, addressing the issue of being unable to uniquely identify a target friend due to similar confidence levels, pronunciation variations, or environmental noise. This adjustment only applies to the newly added friend entry and does not delete the primary name or available aliases from existing friend entries.

[0095] Once the friend relationship is enabled, the companion terminal receives actual voice input from the child and identifies this voice input as one or more candidate texts. The companion terminal generates input recognition data for each candidate text, including the input standard text key, the input homophone key, the input address core key, and the input syllable sequence. The input recognition data is then compared item by item with the entry recognition data in the locally available friend entry settings.

[0096] If the input standard text key or the input homophone key is exactly the same as the key value corresponding to any friend's entry, then the entry is matched; if the input address core key is not empty and is the same as the standard text key or address core key of any friend's entry, then the entry is matched; if none of the above exact matches are matched, but the input syllable sequence and the syllable sequence of any friend's entry satisfy the suspected near-homophone condition, then the entry is matched.

[0097] If a total of zero entry points are matched, the companion terminal outputs a no-match result; if a total of one entry point is matched, the companion terminal outputs the friend relationship identifier corresponding to that entry point; if a total of multiple entry points are matched, the companion terminal further determines whether the friend relationship identifiers corresponding to the matched entry points are the same: if they correspond to the same friend relationship identifier, the friend relationship identifier is merged and output; if they correspond to multiple different friend relationship identifiers, the companion terminal further determines whether the confidence difference between the highest confidence candidate text and the second highest confidence candidate text is less than the candidate confidence difference threshold. If so, it determines that the same voice call input corresponds to multiple recognition candidate texts with similar confidence, and generates a feedback conflict record accordingly, which is uploaded to the server; if the confidence difference is not less than the candidate confidence difference threshold, the companion terminal selects the friend entry point matched by the highest confidence candidate text and outputs its corresponding friend relationship identifier.

[0098] The feedback conflict record includes the identifier of this voice call record, the candidate text to be recognized and its corresponding confidence level, the input recognition data, the identifier of the matched friend relationship, the identifier of the matched friend entry point, the current entry point version number of this client, and the identifier of the friend relationship generated this time. The identifier of the matched friend entry point is used to distinguish whether the matched name is the friend's main name or an available alias; the current entry point version number of this client refers to the version identifier of the set of all currently enabled friend entry points on this client. After receiving the feedback conflict record, the server compares the entry point version number in the feedback conflict record with the current entry point version number of this client stored on the server. If they do not match, it means that the feedback conflict record was not generated based on the currently valid entry point configuration, and the server marks it as expired feedback, which will not be used to adjust the addition of new friend entry points.

[0099] After the server confirms that the conflict record corresponds to the currently enabled entry version on the local device, it determines whether the conflict involves the newly added friend entry corresponding to the friend relationship identifier generated this time. If so, it further determines whether the conflict hits the main name or an available alias of the newly added friend entry: if the conflict hits an available alias, the server generates an updated version of the entry and marks the available alias as deleted in the updated version. After the updated version is synchronized to the local companion terminal and a save confirmation is received, the server removes the available alias from the local record; if the conflict hits the main name, the server triggers the local companion terminal to re-collect the child's voice address, or the server re-determines the main name of the newly added friend. The server only adjusts the newly added friend entry this time and does not delete the main name or available aliases in the existing friend entry.

[0100] Synchronizing the updated entry version can employ the same save confirmation and version number mechanism as the entry data to be activated. For entry updates involving only one local terminal, the server sends the updated entry version to the corresponding companion terminal. After successfully saving the updated entry version, the companion terminal returns a save confirmation and enables the successfully saved updated entry version as the locally available friend entry. If saving fails or the confirmation times out, the server does not change the currently available locally available friend entry for that terminal and keeps the updated entry version in a pending resend state, to be resent when the corresponding companion terminal reconnects to the network or the next time it retrieves entry data.

[0101] In one optional implementation, after processing the feedback conflict record, the server generates a local entry feedback adjustment record based on the feedback conflict record. The local entry feedback adjustment record includes the local device identifier, the child account identifier, the text of the newly added friend entry that was hit, the text of the existing friend entry that was hit, the identified candidate text and its corresponding confidence level, the confidence level difference, the location of the conflicted entry, and the number of conflicts. The server updates the local entry establishment adjustment parameters based on the local entry feedback adjustment record. These parameters are used for subsequent candidate entry analysis, suspected near-sound item judgment, and repetition verification when establishing friend entry based on near-field communication.

[0102] When a feedback conflict record indicates that the confidence difference between the highest-confidence candidate text and the second-highest-confidence candidate text in the same voice call input is less than the candidate confidence difference threshold, the server increases the local candidate confidence difference threshold by a first preset step size. The candidate confidence difference threshold measures whether there is sufficient differentiation between the highest-confidence candidate and the second-highest-confidence candidate: if the difference is lower than this threshold, it indicates that the confidence levels of the two candidate texts are close, and the system cannot reliably determine the name the child truly wants to use. In this case, the top two candidate texts are included in the candidate entry data for conflict detection to avoid missing the correct name due to prematurely eliminating the second-highest-confidence candidate. The increased candidate confidence difference threshold does not exceed the preset upper limit of the difference threshold.

[0103] When feedback conflict records indicate that the input recognition data generated from the same voice call input hits both the newly added friend entry and an existing friend entry, the server extracts the syllable sequence difference between the hit newly added friend entry text and the existing friend entry text. This difference refers to the different syllable positions and initials or finals in the syllable sequence of the two entry texts, and increments the confusion count corresponding to this syllable sequence difference. When the confusion count reaches a preset number of confusions, the server adds this syllable sequence difference to the local high-risk confusion item set. Subsequently, when creating a new friend entry on the same local platform, if the candidate entry text hits the local high-risk confusion item set with an existing friend entry text, the server records the candidate entry text as a suspected near-sound item and performs a repeat verification on the candidate entry text.

[0104] When a feedback conflict record involves a newly added friend's main name that has already passed repeat verification, the server associates and saves the newly added friend's main name, the matched existing friend's entry text, and the syllable sequence differences between the two as a set of repeat feedback objects, and adds repeat validity conditions corresponding to this repeat feedback object. Adding repeat validity conditions includes increasing the number of valid repeats by a second preset step size, i.e., the minimum number of valid acquisitions required for the repeated speech to meet the preset repeat validity conditions when performing repeat verification, or increasing the confidence difference requirement between the repeat candidate text and the verified candidate entry text; the increased number of valid repeats and the confidence difference requirement do not exceed the corresponding preset upper limit. Subsequently, when repeat feedback objects with the same syllable sequence differences or that match the set of high-risk obfuscation items on the same local device appear, the server performs repeat verification according to the added repeat validity conditions.

[0105] The server-side updates to the settings parameters for establishing friend entry points only apply to subsequent friend entry point creation processes within the same device or child account, and do not change the primary name and available aliases in existing friend entry points. If no feedback conflict record corresponding to the sequence difference of the same syllable recurs within the preset observation period, the server can reset the corresponding confusion count to zero, or restore the candidate confidence difference threshold and repeat validity conditions to the default configuration. The candidate confidence difference threshold, first preset step size, preset difference threshold upper limit, preset confusion count, second preset step size, and preset upper limit corresponding to the repeat validity conditions are all determined by the server-side configuration parameters and are saved corresponding to the device identifier or child account identifier.

[0106] Example 3

[0107] like Figure 4 As shown, this embodiment focuses on the abnormal branches and boundary handling methods involved in the near-field friend entry establishment process. Abnormal branches refer to the process interruption or state compensation handling taken by the server when unexpected situations such as device reporting timeout, voice recognition service unavailability, inability to generate candidate entries, and terminal saving failure occur during the near-field friend establishment process. Boundary handling refers to the server's pre-verification and special response to critical conditions such as inconsistent entry version numbers, insufficient terminal storage space, duplicate reporting, or duplicate confirmation to prevent abnormal system states. The server follows the processing order of near-field reporting, account binding information, candidate entry data, pre-writing review, entry synchronization and saving, and actual voice call feedback, performing status recording, pending supplementation, pending resending, resynchronization, or historical conflict saving for various situations that do not meet the normal processing conditions.

[0108] If either the first or second companion terminal fails to report to the server after near-field communication, the server will not generate a near-field friend establishment record; the received one-end report will be marked as a one-end report failure after a preset waiting time. After a one-end report failure, even if the other end subsequently reports, if the reporting time has exceeded the valid time of the near-field touch session identifier, the server will not enter the friend establishment process.

[0109] If the server cannot read the account binding information of any companion terminal, it will not generate a friend relationship identifier and will mark the near-field friend creation record as having missing binding information. In the state of missing binding information, the server can output a binding prompt to the corresponding parent terminal or device management terminal, but will not send available friend entry points to the companion terminal.

[0110] If the child's spoken address only contains introductory words, punctuation, pause words, or titles, and the resulting text after preprocessing is empty, the server will not generate candidate entry data originating from the child's speech. If the public nickname contains sensitive words, blank text, system reserved words, or device-specific text that the server prohibits from being used as entry points, the server will not use that public nickname as candidate entry data. If all candidate entry points are unavailable, the server will save that local address as a record to be supplemented.

[0111] If the speech recognition service times out, becomes unavailable, or returns an incorrect format, the server will mark the corresponding name collection record as a recognition failure. If the local client's existing friend entry set is empty, the server will still generate candidate entry recognition data according to the entry recognition data generation rules and record the candidate entry as a miss. If the local client's existing friend entry set fails to be read, the server will not perform a pre-write verification and will record the local client as having an entry set read failure status.

[0112] If the server detects a change in the version of the existing friend entry set on the local side between the pre-write review and synchronous distribution, the server cancels the current entry data to be effective and re-reviews it based on the latest entry set version.

[0113] If the accompanying terminal goes offline, the server will not consider the undelivered pending entry data as saved. After the offline terminal reconnects, the server queries the current synchronization status based on the friend relationship identifier and entry version number. If it is still in the pending resend status, it will resend the data; if it has been canceled or replaced, the old version will not be resent.

[0114] If the accompanying terminal receives a duplicate synchronization packet with the same entry version number, and the same entry data awaiting activation has already been saved locally, it will return a save confirmation again and will not write it again. If an older synchronization packet with a version number lower than the one already saved locally is received, the save will be rejected and an old version rejection result will be returned.

[0115] If the server receives a duplicate save confirmation, and the friend relationship identifier and entry version number in the save confirmation match the current version to be confirmed, the server only returns a successful confirmation receipt to the terminal, but does not modify the friend relationship status, increment the confirmation count, or trigger the activation command, to avoid the same confirmation being counted repeatedly, causing state machine anomalies, and to prevent repeated state advancement. If the server receives an out-of-order save confirmation, and the entry version number in the save confirmation is lower than the current entry version number, the server ignores the receipt and returns the current entry version number to the terminal. If the entry version number in the save confirmation is higher than the server's current entry version number, the server does not accept the receipt and requests the terminal to re-fetch the current entry synchronization state.

[0116] If either end returns a save failure or fails to return a save confirmation within the preset confirmation time, the server will not issue an enable command, but will send a cancel pending activation command to the terminal that has already saved the data, and will keep the pending activation entry data in a pending resend state.

[0117] If the companion terminal receives an activation command but does not have the corresponding friend relationship identifier and entry version number for the pending entry data locally, the companion terminal will not activate the new friend entry and will return a result indicating that the pending record is missing to the server. Based on this result, the server will mark the corresponding entry version number as an activation anomaly and determine the subsequent processing method according to the validity of the current entry data: if the server still has complete pending entry data corresponding to the entry version number locally, and the data does not conflict with the existing friend entry set on the terminal after being rewritten and verified, the server will restore the entry version number to the pending resend state and resend the synchronization package to the terminal, that is, re-enter the synchronization process.

[0118] If the pending entry data conflicts with the existing friend entry set on this end due to changes in other friend entry entries during the waiting period on this end, or if the entry version number has been marked as canceled by the server, the server will invalidate the version number, trigger the re-collection of the child's address voice or the re-selection of candidate entry, generate a new entry version number, and then re-enter the pending entry data generation process, that is, regenerate the pending entry data.

[0119] The server employs a single-object serial processing approach for synchronizing entry points for the same friend relationship identifier. This means that for the same friend relationship identifier, only one entry operation (generating, saving, enabling, updating, or resending) is allowed to be in progress at any given time. Only after that operation is completed and its status is confirmed can the next request for that friend relationship be processed. Synchronization operations between different friend relationship identifiers do not affect each other and can be processed in parallel.

[0120] If the input recognition data in the actual voice call feedback matches more than two friend entry points, but the matching results do not involve the friend relationship identifier generated this time, the server will not adjust the newly added entry point. If it does involve the friend entry point, but the entry point version number in the feedback conflict record is inconsistent with the version currently saved on the server, the server will not adjust based on the feedback of the old version.

[0121] After completing the above explanation of abnormal branches and boundary handling, the following section uses a specific scenario to illustrate the aforementioned process of establishing a near-field friend entry point, handling entry point conflicts, enabling dual-end synchronization, and adjusting feedback.

[0122] When the first companion terminal A and the second companion terminal B experience near-field contact, both report the near-field contact session identifier T01 to the server. The server confirms that the peer device identifier reported by A is B, and the peer device identifier reported by B is A, and that both have session identifiers of T01, thus generating a near-field friend establishment record. After parental confirmation, the server generates a friend relationship identifier F01 and creates a pending entry processing record using this identifier as an index, saving the record's status as pending entry processing.

[0123] For the first companion terminal A, the child says "Xiaoming brother". The first two candidate texts in the speech recognition result are "Xiaoming brother" and "Xiaoming brother". The server generates candidate entry data for "Xiaoming brother" that originates from the child's speech, and removes the last term of address "brother" to obtain candidate entry data "Xiaoming" that originates from the child's speech backbone; for "Xiaoming brother", candidate entry data and its backbone "Xiaoming" are also generated, where "Xiaoming" has the same homophone key as the existing entry "Xiaoming", constituting a homophone hard conflict. If A's existing friend entry set already has a friend relationship F00 whose primary address is "Xiaoming", then the primary address backbone key "Xiaoming" of the candidate entry "Xiaoming brother" matches the existing entry standard text key "Xiaoming", and the server records it as a semantic overlap hard conflict; if the candidate entry "Xiaoming" has the same standard text key as the existing entry "Xiaoming", the server records it as a duplicate name hard conflict. The server does not delete the existing friend F00 entry, but instead prompts the child on terminal A to say the different address again. When the child says "Xiaomi" again, the server generates a standard text key "Xiaomi", a homophone key "xiao-mi", and a sequence of syllables. If there are no duplicate names, homophones, or semantic overlaps in the existing friend entry set of A, and there are no suspected near-sound items that meet the condition of easy confusion with single syllables, then the server records "Xiaomi" as a miss and uses it as the new friend's main name when the first companion terminal A calls the second companion terminal B. That is, the server binds "Xiaomi" with the friend relationship identifier F01 and the peer device identifier B, and synchronizes this binding relationship to the local machine of the A terminal when it is enabled in the future, so that when the child on the A terminal says "Xiaomi", the entry can be hit and the location can be located to B.

[0124] When the child says "Xiao Nan" to the second companion terminal B, if B's ​​existing friend entry set contains an existing entry "Xiao Lan" with the same number of syllables, different homophone keys, and only the second syllable differs in the initial consonant "n" and "l," this difference falls within the preset easily confused range. The server records the suspected near-sound item and sends a repeat collection command to B. If the first candidate text in the repeat speech recognition result is "Xiao Nan," and the recognition confidence of "Xiao Lan" is not higher than that of "Xiao Nan," the server records the near-sound verification as successful and uses "Xiao Nan" as the new friend's primary name when the second companion terminal B calls the first companion terminal A. If the first candidate text in the repeat speech recognition result is "Xiao Lan," the server records the near-sound conflict and prompts the child on terminal B to repeat the different name.

[0125] After both client A and client B generate the new friend's main name, the server rereads their respective existing friend entry sets for pre-write verification. Upon successful verification, the server generates entry version number V01 and sends the pending entry data to both client A and client B. Both client A and client B first save the pending entry data but do not activate the entry, and return a save confirmation to the server carrying the friend relationship identifier F01 and entry version number V01. After receiving the save confirmations for F01 and V01 from both clients, the server issues activation commands to both clients. Upon receiving the activation commands, both clients convert the pending entry data corresponding to V01 into a locally usable friend entry.

[0126] If, when the child on device A actually says "Xiaomi," it only hits the friend relationship F01, device A outputs F01 as the target friend. If the child on device A actually says a certain sound that hits both F01 and an existing friend F00, device A does not output the target friend relationship identifier, but instead uploads a conflict record to the server. If the conflict hits an available nickname for F01, the server generates an updated version of the entry and marks the available nickname for deletion in the updated version. After successful synchronization, the available nickname is removed from the local record. If the conflict hits the primary name for F01, the server only re-collects the child's pronunciation of F01 or readjusts the primary name, without deleting the primary name or available nicknames for F00.

Claims

1. A method for establishing a companion terminal friend based on near-field communication, executed by the server, characterized in that: include: The system receives the device identifier, peer device identifier, and near-field touch session identifier reported by two companion terminals after they touch each other in near-field communication. When the peer device identifier reported by one companion terminal corresponds to the device identifier reported by the other companion terminal, and the near-field touch session identifiers reported by the two companion terminals are the same, a near-field friend establishment record is generated. A friend relationship identifier is generated based on the near-field friend creation record and the parent confirmation configuration in the account binding, and the friend relationship identifier is saved as a record to be processed. Two companion terminals are used as local terminals, and candidate entry data are generated based on the child's voice address collected by the local terminal and / or the publicly disclosed nickname of the other terminal. Generate entry identification data for each candidate entry data; The entry identification data is compared with the existing friend entry set on this end to obtain the entry hit analysis result, which includes no hit, hard conflict or suspected near sound item; Repeat the verification of suspected near-sound items to obtain the repeat verification results, including near-sound conflicts or near-sound verification passed; From the candidate entry data where the entry hit analysis result is a no hit or the repeat verification result is a near-sound verification pass, determine the corresponding new friend's main name on this client; Based on the new friend's main name corresponding to this client, generate the entry data for this client that is yet to be activated. After both companion terminals generate pending entry data, the pending entry data carrying the entry version number is sent to both companion terminals respectively. After both companion terminals return a save confirmation for the same friend relationship identifier and the same entry version number, an activation command is issued, so that the two companion terminals respectively enable the newly added friend entry in the saved pending entry data as a locally available friend entry.

2. The method for establishing a companion terminal friend based on near-field communication according to claim 1, characterized in that, The candidate entry data generated based on the child's addressing voice collected on this end and / or the publicly available nicknames on the other end includes: The server performs text preprocessing on the candidate texts corresponding to the children's addressing voices collected locally to obtain the children's addressing texts, and uses the non-empty children's addressing texts as candidate entry data from children's voices; When the beginning or end of the child's address text contains a title word, the server removes the title word to obtain the address backbone, and uses the non-empty address backbone as candidate entry data from the child's speech backbone. The server reads the peer's publicly available nickname, performs text preprocessing on the publicly available nickname, and uses the processed non-empty publicly available nickname as candidate entry data with publicly available nickname as the source. Each candidate entry data includes the local device identifier, the peer device identifier, the friend relationship identifier, the greeting text, and the candidate source; the candidate entry data from children's voice or children's voice backbone also includes the candidate sequence number, recognition confidence, and the original candidate text.

3. The method for establishing a companion terminal friend based on near-field communication according to claim 1, characterized in that, The entry point identification data includes standard text keys, homophone keys, address core keys, and syllable sequences; the comparison of the entry point identification data with the existing friend entry point set on this device to obtain entry point hit analysis results includes: If the standard text key of the candidate entry data is the same as the standard text key of any existing friend entry in the existing friend entry set on this end, the server records the candidate entry data as a hard conflict due to name duplication. If the homophone of a candidate entry data is the same as the homophone of any existing friend entry data, the server records the candidate entry data as a homophone hard conflict. If the name core key of the candidate entry data is not empty, and the name core key is the same as the standard text key or name core key of any existing friend entry, or if the name core key of any existing friend entry is not empty, and the standard text key of the candidate entry data is the same as the name core key of the existing friend entry, then the server records the candidate entry data as a hard conflict of overlapping title semantics. If the candidate entry data does not have any hard conflicts, and the candidate entry data has the same number of syllables as any existing friend entry, different homophones, and only one syllable position with a difference in initial consonant and / or final vowel, and the difference is within the preset easily confused range, then the server records the candidate entry data as a suspected near-sound item. The preset easily confused range includes at least one of z and zh, c and ch, s and sh, l and n, in and ing, en and eng, and an and ang; If there is no hard conflict in the candidate entry data and no suspected near-phonetic items, the server records the candidate entry data as a miss. If a candidate entry data satisfies multiple hard conflict conditions, the hard conflict with the highest priority will be taken as the final hit state of the candidate entry, according to the priority order of hard conflict of duplicate name, hard conflict of homophone, and hard conflict of overlapping title semantics.

4. The method for establishing a companion terminal friend based on near-field communication according to claim 1, characterized in that, Before the data from the production cost side is ready to take effect, it also includes: The server determines the available nicknames for new friends from the candidate entry data, excluding the main nickname of the new friend, and those whose entry hit analysis result is not a hit or whose repetition verification result is a near-sound verification pass and is different from the main nickname of the new friend. The server rereads the current set of friend entries on the local end, and based on the reread set of current friend entries on the local end, performs a pre-write review of the main name and available aliases of the new friend. If there is a hard conflict of name duplication, homophony, semantic overlap or near-homophony between the main name of a new friend and the available aliases of an existing friend entry, or if there is a conflict of any of the above between the available aliases of a new friend and the main name or available aliases of an existing friend entry, the server will determine it as an alias conflict. If, during the pre-writing review, a hard conflict occurs regarding duplicate names, homophones, overlapping semantics of titles, or suspected near-homophones that are confirmed to be near-homophones or alternative names after repeated verification, the server will not generate the pending entry data for this server and will re-determine the new friend's main title. If a new friend's available alias is found to have a hard conflict during the pre-writing review process due to duplicate names, homophones, overlapping semantics, near-homophones, or other conflicts, the server will delete the new friend's available alias and will not write it into the pending entry data.

5. The method for establishing a companion terminal friend based on near-field communication according to claim 1, characterized in that, The method further includes: After the new friend entry is enabled, the server receives feedback conflict records uploaded by the local companion terminal; The feedback conflict record is generated by the local companion terminal when one or more candidate texts are input for the same voice call, according to the same generation rule as the entry recognition data, and when one or more input recognition data hit at least two friend entry points in total and no target friend relationship identifier is output. The feedback conflict record includes the identifier of this voice call record, the candidate text to be recognized and its corresponding confidence level, the input recognition data, the identifier of the friend relationship that was hit, the identifier of the friend entry point that was hit, the current entry point version number of this terminal, and the friend relationship identifier generated this time; The server determines whether the feedback conflict record corresponds to the currently enabled entry version on the client based on the current entry version number. If they do not correspond, the feedback conflict record is marked as expired feedback and will not be used to adjust the new friend entry.

6. The method for establishing a companion terminal friend based on near-field communication according to claim 5, characterized in that, The method further includes: After the server confirms that the feedback conflict record corresponds to the currently enabled entry version on this client, it determines whether the conflict involves the new friend entry corresponding to the friend relationship identifier generated this time based on the feedback conflict record. If the conflict involves the newly added friend entry point, the server determines the location of the newly added friend entry point where the conflict occurs. If a conflict occurs with an available alias for a newly added friend entry, the server generates an updated version of the entry and marks the available alias as deleted in the updated version. After the updated version of the entry is synchronized to the local companion terminal and a save confirmation is received, the server removes the available alias from the local record. If the conflict occurs with the main name of the newly added friend entry, the server will trigger the local companion terminal to re-collect the child's voice address, or the server will re-determine the main name of the newly added friend. The server only adjusts the new friend entry point, without deleting the existing friend main names and available aliases from the existing friend entry point set on the local side.

7. The method for establishing a companion terminal friend based on near-field communication according to claim 6, characterized in that, The method further includes: The server generates a local entry feedback adjustment record based on the feedback conflict record. The local entry feedback adjustment record includes the local device identifier, the child account identifier, the text of the newly added friend entry that was hit, the text of the existing friend entry that was hit, the identified candidate text and its corresponding confidence level, the confidence difference, the entry position of the conflict hit, and the number of times the conflict occurred. The server updates the local entry establishment adjustment parameters based on the local entry feedback adjustment record. The local entry establishment adjustment parameters are used for candidate entry analysis, suspected near-sound item judgment and repetition verification when establishing friend entry based on near-field communication. When the feedback conflict record indicates that the confidence difference between the highest confidence candidate text and the second highest confidence candidate text in the same voice call input is less than the candidate confidence difference threshold, the server increases the local candidate confidence difference threshold by a first preset step size, and the increased candidate confidence difference threshold does not exceed the preset difference threshold upper limit. The candidate confidence difference threshold, the first preset step size, and the preset difference threshold upper limit are determined by the server-side configuration parameters and are saved in correspondence with the local device identifier or the child account identifier.

8. The method for establishing a companion terminal friend based on near-field communication according to claim 7, characterized in that, The server-side update of the local entry point establishment adjustment parameters based on the local entry point feedback adjustment record also includes: When the feedback conflict record indicates that the input recognition data generated by the same voice call input hits the newly added friend entry and the existing friend entry respectively, the server extracts the syllable composition sequence difference between the hit newly added friend entry text and the existing friend entry text, and increments the confusion count corresponding to the syllable composition sequence difference by one. When the obfuscation count reaches the preset number of obfuscations, the server adds the sequence difference of the syllable to the local high-risk obfuscation item set; When a new friend entry is created on the same local device, if the candidate entry text matches the local device's high-risk obfuscation item set with the existing friend entry text, the server records the candidate entry text as a suspected near-sound item and performs the aforementioned repetition verification on the candidate entry text. When the feedback conflict record involves a newly added friend's main name that has already passed the repeat verification, the server associates and saves the newly added friend's main name, the existing friend's entry text that was hit, and the syllable sequence difference between the two as a set of repeat feedback objects, and adds the repeat validity conditions corresponding to the repeat feedback object; adding repeat validity conditions includes increasing the number of repeat validity times by a second preset step, or increasing the confidence difference requirement between the repeat candidate text and the verified candidate entry text; The preset number of obfuscation attempts, the second preset step size, and the preset upper limit corresponding to the valid conditions for repeating are determined by the server-side configuration parameters. The set of high-risk obfuscation items on the local end is stored in correspondence with the local device identifier or the child account identifier.

9. The method for establishing a companion terminal friend based on near-field communication according to claim 3, characterized in that, The method further includes: The server determines the main name of the new friend according to the priority of the candidate sources. The priority of the candidate sources is in the order of children's voice, children's voice backbone and public nickname. The candidate entry data is only used as the main name of the new friend or the available nickname of the new friend when the entry hit analysis result is no hit or the repetition verification result is near sound verification passed. The server configures different confidence thresholds for collecting names and valid conditions for repeating for children of different age groups, and saves the confidence thresholds for collecting names, valid conditions for repeating, preset number of candidate texts, first preset step size, second preset step size and preset number of times as server configuration parameters; If the homophones in the entry recognition data are generated by the companion terminal and sent to the server, the server will verify the homophones based on the same pinyin dictionary or the same speech recognition pronunciation result. If the homophones verified by the server are inconsistent with the homophones sent by the companion terminal, the homophones generated by the server will be used as the basis for entry hit analysis, pre-writing verification and synchronous saving.

10. A companion terminal friend-building system based on near-field communication, using the method described in any one of claims 1-9, characterized in that, include: The near-field friend creation module is used to receive the self-device identifier, peer device identifier, and near-field touch session identifier reported by the two companion terminals after near-field communication touch, and to generate a near-field friend creation record and friend relationship identifier when the content reported by the two companion terminals matches. The voice entry generation module is used to take two companion terminals as local terminals, generate candidate entry data based on the child's address voice collected by the local terminal and / or the publicly disclosed nickname of the other terminal, and generate corresponding entry recognition data. The entry conflict handling module is used to compare the entry identification data with the existing friend entry set on this end, to obtain the missing, hard conflict or suspected near-sound items, and to perform repeated verification on the suspected near-sound items to determine the corresponding new friend's main name on this end. The entry synchronization module is used to generate local entry data to be activated based on the new friend's name. After both companion terminals return a save confirmation for the same friend relationship identifier and the same entry version number, it issues an activation command so that the two companion terminals can activate the new friend entry in the saved entry data to be activated as a locally available friend entry. The feedback adjustment module is used to receive feedback conflict records uploaded by the companion terminal during actual voice calls, adjust the newly added friend entry based on the feedback conflict records, and update the entry establishment adjustment parameters for subsequent friend entry establishment.

Citation Information

Patent Citations

  • A method, device and system for adding a friend account

    CN105681161B

  • Friend making method, system and equipment based on near field communication

    CN121750335A