Translation method, device, wearable device, terminal device and readable storage medium
By establishing connections between translation devices and using target identification information to determine the translation mode, the problem of a single translation technology mode is solved, personalized translation is achieved, the accuracy and adaptability of translation are improved, and user needs in different scenarios are met.
Patent Information
- Application Number
- CN202410926349.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-07-11
AI Technical Summary
The existing translation technology model is single, unable to meet personalized translation needs, and cannot adapt to users' translation styles and language expressions in different scenarios.
By establishing connections between translation devices, the target identification information is used to determine a suitable translation mode from multiple translation modes, and translation processing is performed according to the scenario and user needs, and translation information is generated and played.
It realizes the personalization of translation results, improves the accuracy and adaptability of translation, meets user needs in different scenarios, reduces translation errors and inappropriate translations, and improves the real-time and efficiency of face-to-face communication.
Smart Images

Figure CN118468898B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure belongs to the field of translation technology, and more specifically, relates to a translation method, apparatus, wearable device, terminal device and readable storage medium. Background Art
[0002] With the acceleration of global integration, international exchanges are becoming more frequent, and the demand for cross-language communication is growing sharply, laying the foundation for the birth and advancement of face-to-face translation technology. The rise of artificial intelligence technology, especially the advancement of natural language processing technology, enables computers to better understand the context, semantics and grammatical structure of language, thereby providing more contextual translation results. The performance improvement of mobile devices such as smartphones and tablets provides powerful computing power and convenient operating platforms for translation applications. At the same time, the emergence of smart wearable devices such as smart glasses provides a more innovative and immersive experience for real-time translation during face-to-face communication. However, the current translation technology has a relatively single translation mode and cannot meet the needs of personalized translation. Summary of the invention
[0003] The purpose of the present disclosure is to provide a translation method, apparatus, wearable device, terminal device and readable storage medium to solve the problem that the translation mode is single and cannot meet the personalized translation needs.
[0004] According to a first aspect of an embodiment of the present disclosure, a translation method is provided, which is applied to a first device and includes:
[0005] In response to the received trigger instruction, first target identification information is generated.
[0006] The first target identification information and the first voice information are sent to the second device, where the first target identification information is used to instruct the second device to determine a target translation mode from multiple translation modes according to the first target identification information, and to instruct the second device to translate the first voice information based on the target translation mode, and to generate and play the first translation information.
[0007] Among them, the translation styles of the multiple translation modes are different, the second device is a device that establishes a connection with the first device, the first voice information is the voice information of the first user, and the first user is a user wearing the first device.
[0008] A second aspect of the embodiments of the present disclosure provides a translation method, which is applied to a second device and includes:
[0009] In response to receiving the first target identification information and the first voice information of the first device, a target translation mode is determined from a plurality of translation modes according to the first target identification information.
[0010] The first voice information is translated based on the target translation mode, and the first translation information is generated and played.
[0011] Among them, the first device is a device that establishes a connection with the second device, the first target identification information is the identification information generated by the first device when it receives a trigger instruction, the first voice information is the voice information of the first user, and the first user is a user wearing the first device.
[0012] According to a third aspect of the embodiments of the present disclosure, a translation apparatus applied to a first device is provided, including:
[0013] The first response module is used to generate first target identification information in response to a received trigger instruction.
[0014] The first translation module sends the first target identification information and the first voice information to the second device, wherein the first target identification information is used to instruct the second device to determine a target translation mode from multiple translation modes according to the first target identification information, and to instruct the second device to translate the first voice information based on the target translation mode, and to generate and play the first translation information.
[0015] Among them, the translation styles of the multiple translation modes are different, the second device is a device that establishes a connection with the first device, the first voice information is the voice information of the first user, and the first user is a user wearing the first device.
[0016] According to a fourth aspect of the embodiments of the present disclosure, a translation apparatus applied to a second device is provided, including:
[0017] The second response module is configured to determine a target translation mode from a plurality of translation modes according to the first target identification information in response to receiving the first target identification information and the first voice information from the first device.
[0018] The second translation module is used to translate the first voice information based on the target translation mode, generate and play the first translation information.
[0019] Among them, the first device is a device that establishes a connection with the second device, the first target identification information is the identification information generated by the first device when it receives a trigger instruction, the first voice information is the voice information of the first user, and the first user is a user wearing the first device.
[0020] According to a fifth aspect of an embodiment of the present disclosure, a wearable device is provided, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein when the processor executes the computer program, the steps of the translation method of the first aspect are implemented.
[0021] According to a sixth aspect of an embodiment of the present disclosure, a terminal device is provided, including a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the computer program, the steps of the translation method of the second aspect are implemented.
[0022] According to a seventh aspect of an embodiment of the present disclosure, a computer-readable storage medium applied to a first device is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the translation method of the first aspect are implemented.
[0023] According to an eighth aspect of an embodiment of the present disclosure, a computer-readable storage medium applied to a second device is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the translation method of the second aspect are implemented.
[0024] The beneficial effects of the translation method, apparatus, wearable device, terminal device, and readable storage medium provided by the embodiments of the present disclosure are: the first device can indicate a plurality of translation modes by generating different identification information, which can meet the personalized needs of users for translation styles in different scenarios. Different users have different needs for translation in different scenarios. For example, in formal business occasions, they may need rigorous and accurate translation, while in daily communication, they may prefer a translation style that is easy to understand. Different translation modes can better adapt to various language expressions and contexts, so that the translation results are more in line with the specific communication situation, improving the quality and accuracy of the translation.
[0025] The second device can quickly and accurately determine the appropriate target translation mode from multiple translation modes based on the target identification information transmitted by the first device. This ensures that the translation of the first voice information can fully meet the needs of the user and the communication scenario, thereby greatly improving the accuracy and professionalism of the translation and avoiding translation errors or inappropriateness caused by mode mismatch.
[0026] The present application realizes the effective connection and collaboration between the first device and the second device, making full use of the advantages of the two devices. The first device is responsible for triggering and sending information, and the second device focuses on translating and processing according to instructions, optimizing resource allocation and workflow. The present application can quickly respond to trigger instructions and perform information transmission and translation processing, reducing the waiting time for users and improving the real-time and efficiency of translation during face-to-face communication. The present application can flexibly select and switch translation modes according to actual conditions, adapting to the language habits, communication objects and characteristics of communication content of different users. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0028] Figure 1 A flowchart of a translation method provided by an embodiment of the present disclosure;
[0029] Figure 2 A flowchart of a translation method provided by another embodiment of the present disclosure;
[0030] Figure 3 A schematic diagram of a signaling interaction process between devices provided in an embodiment of the present disclosure;
[0031] Figure 4 A schematic diagram of a signaling interaction flow between devices provided in another embodiment of the present disclosure;
[0032] Figure 5 A structural block diagram of a translation device applied to a first device provided by an embodiment of the present disclosure;
[0033] Figure 6 A structural block diagram of a translation device applied to a second device provided in an embodiment of the present disclosure;
[0034] Figure 7 A schematic block diagram of a wearable device provided in one embodiment of the present disclosure;
[0035] Figure 8 A schematic block diagram of a terminal device provided in one embodiment of the present disclosure. DETAILED DESCRIPTION
[0036] In the following description, specific details such as specific system structures and technologies are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present disclosure. However, it should be clear to those skilled in the art that the present disclosure may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid obstructing the description of the present disclosure with unnecessary details.
[0037] In order to make the purpose, technical solutions and advantages of the present disclosure more clear, specific embodiments will be described below in conjunction with the accompanying drawings.
[0038] Please refer to Figure 1 , Figure 1 A flowchart of a translation method provided in an embodiment of the present disclosure is provided. The method is applied to a first device and may include S101 to S102.
[0039] S101 generates first target identification information in response to a received trigger instruction.
[0040] In this embodiment, the first device may include smart glasses, and the second device may include a mobile terminal, such as a mobile phone. When the first user wears the smart glasses and issues a trigger instruction, the smart glasses as the first device will respond quickly and generate specific first target identification information. The first target identification information can be used as a "password" to carry key information about the translation mode expected by the user.
[0041] For example, when a user wearing glasses (i.e., the first device) is communicating with a person who speaks a foreign language, they want to translate the language of both parties. The user can open the mobile app to enter the face-to-face translation, click on the phone to speak to receive and translate the voice of the conversation, and hear the translated language through the glasses. The user can speak through the glasses, and the translation can be displayed in the app and the translated content can be directly played externally.
[0042] For example, a businessman attends an important meeting abroad, wearing smart glasses and with his phone in his pocket. During the meeting, when he needs to communicate with a foreign partner, he taps a specific button on the smart glasses to issue a trigger command. The smart glasses then generate the first target identification information corresponding to the business formal translation mode, and send his first voice message "We are looking forward to establishing a long-term cooperation with you" to the phone. After receiving the message, the phone selects the business formal translation mode according to the corresponding identification information, translates it into "We are looking forward to establishing a long-term cooperation with you." and plays it clearly.
[0043] S102: Sending first target identification information and first voice information to a second device, wherein the first target identification information is used to instruct the second device to determine a target translation mode from a plurality of translation modes according to the first target identification information, and to instruct the second device to translate the first voice information based on the target translation mode, and to generate and play the first translation information.
[0044] Among them, the translation styles of the multiple translation modes are different, the second device is a device that establishes a connection with the first device, the first voice information is the voice information of the first user, and the first user is a user wearing the first device.
[0045] In the present embodiment, multiple translation modes may include conference mode and chat mode. The translation style of the conference mode may include accuracy, formality, simplicity and professionalism. For example, the translation has a high accuracy rate, which can be quantified as an error rate of less than 5%. Formal vocabulary and grammatical structure are used, and the proportion of formal vocabulary used exceeds 80%. Avoid lengthy and complex expressions, and the average sentence length is controlled at about 20 words. Professional terms and industry-specific terms are accurately translated, and the accuracy rate of professional terminology translation reaches more than 95%. The translation style of the chat mode may include colloquialism, flexibility and popularity. For example, spoken vocabulary and expressions are used, and the proportion of spoken vocabulary exceeds 70%. The word order and sentence structure can be more flexible, and the proportion of sentences that do not strictly follow grammatical rules does not exceed 20%. Use easy-to-understand vocabulary, and the frequency of occurrence of uncommon words is less than 5%.
[0046] The smart glasses send the first target identification information and the first voice information spoken by the first user to the mobile phone connected thereto, that is, the second device. After receiving this information, the mobile phone can determine the target translation mode from the pre-set multiple translation modes according to the first target identification information. The mobile phone can translate the first voice information based on the selected target translation mode. After the translation is completed, the mobile phone can play the generated first translation information so that the communication partner can hear it.
[0047] For example, a student participates in an academic exchange activity abroad and wears smart glasses. When he asks a foreign professor a question, after the trigger command is issued, the smart glasses generate identification information corresponding to the academic professional translation mode and transmit his words "May I ask what your opinion is on the latest research of this theory?" to the mobile phone. The mobile phone selects the academic professional translation mode according to the identification, translates it into "May I ask what your opinion is on the latest research of this theory?" and then plays it, ensuring that the academic content is accurately conveyed.
[0048] Exemplarily, before using the translation method, the user can open the mobile app and connect the Bluetooth of the smart glasses. The app is used for face-to-face translation. The user can choose the language of both ends. After the first selection, the user's last selection will be defaulted when entering again, and the translation instructions page will be directly entered. Among them, the selected languages of both ends are different. For example, if Chinese is selected on the mobile end, Chinese cannot be selected on the smart glasses end. On the translation page, before any content is entered, the instructions for use can be displayed. Click the first button, the mobile phone can start receiving the sound, and the page will display the transcription of the user's speech. Click the button again, the sound is over, and this paragraph of text is translated. Click the second left button, the smart glasses can receive the sound, and the process is the same as above. Exiting the translation page can terminate the translation and retain the translation history. Support switching languages during the translation dialogue. The translation of the mobile phone speech can be broadcast through the smart glasses. The translation of the smart glasses speech can be broadcasted through the mobile phone app. During the dialogue, the voice input supports a maximum of 60 seconds, and it will be automatically terminated if the time is exceeded. The mobile phone can obtain a list of supported multi-language selections from the cloud. The translation record can record the time, the speaker of the source language, and the corresponding record of the source language or the translated language.
[0049] It can be concluded from the above that the present embodiment can indicate a variety of translation modes by generating different identification information, which can meet the personalized needs of users for translation styles in different scenarios. Different users have different needs for translation in different scenarios. For example, rigorous and accurate translation may be required in formal business occasions, while in daily communication, a translation style that is easy to understand may be preferred. Different translation modes can better adapt to various language expressions and contexts, so that the translation results are more in line with the specific communication situation, and the quality and accuracy of the translation are improved. The present embodiment realizes the effective connection and collaboration of the first device and the second device, and makes full use of the advantages of the two devices. The first device is responsible for triggering and sending information, and the second device focuses on translating and processing according to the instructions, optimizing resource allocation and workflow. The present embodiment can quickly respond to trigger instructions and perform information transmission and translation processing, reducing the waiting time of users and improving the real-time and efficiency of translation during face-to-face communication. The present embodiment can flexibly select and switch translation modes according to actual conditions to adapt to the language habits, communication objects and communication content characteristics of different users.
[0050] In one embodiment of the present disclosure, the translation method applied to the first device further includes:
[0051] In response to receiving the second target identification information and the second translation information, a target broadcast mode is determined from a plurality of broadcast modes according to the second target identification information.
[0052] The second translation information is broadcast based on the target broadcast mode.
[0053] Among them, the second target identification information is the identification information determined by the second device based on the second voice information, the second translation information is the information obtained by the second device translating the second voice information, the multiple broadcast modes have different broadcast styles, the second voice information is the voice information of the second user, and the second user is the user who has a conversation with the first user.
[0054] In this embodiment, when the first device receives the second target identification information and the second translation information from the second device, the subsequent processing flow can be started. The first device can parse and understand the second target identification information. The second target identification information can be used as a specific "style instruction", which clearly indicates that a certain broadcast mode is used to present the translation content. According to the parsed instruction, the first device can determine the target broadcast mode from a plurality of pre-set modes with different broadcast styles. These broadcast modes can differ in speech speed, intonation, timbre and even emotional color to meet the needs of different scenarios and users. After determining the target broadcast mode, the first device can process and optimize the second translation information according to the target broadcast mode. For example, if it is a fast and lively broadcast mode, the speech speed will be faster and the intonation may be more upward. If it is a steady and solemn broadcast mode, the speech speed will be moderate and the intonation will be more stable. The first device can broadcast the second translation information processed by the target broadcast mode in a clear and accurate manner through its own audio output device, so that the first user can hear and understand it.
[0055] For example, in an international tourism scenario, a Chinese tourist (first user) wears smart glasses (first device) and communicates with a foreign tour guide (second user). The tour guide introduces a certain scenic spot in English and says: "This is a famous historical site with a long and rich history." The second device (which can be the mobile phone of the Chinese tourist) translates this sentence into "This is a famous historical site with a long and rich history." At the same time, it determines a soothing and clear broadcast mode, generates a second target identification information, and sends the translation content and the second target identification information to the smart glasses of the Chinese tourist. After receiving this information, the smart glasses select a soothing and clear broadcast mode according to the second target identification information, and broadcast the translation content to the tourists at a slower speed and clear pronunciation, so that the tourists can easily understand the introduction of the tour guide.
[0056] This embodiment widely supports the mutual translation of multiple languages and local dialects, greatly expanding the scope and convenience of communication. Whether it is a global common language or a dialect with regional characteristics, barrier-free communication can be achieved, promoting closer communication between people from different regions and cultural backgrounds. This embodiment can select the appropriate broadcast mode according to different situations and user needs, so that the translated information is more in line with the actual communication scenario. This helps to improve the accuracy and comfort of information reception and improve the effect and quality of communication.
[0057] Please refer to Figure 2 , Figure 2 A flowchart of a translation method provided in another embodiment of the present disclosure is provided. The method is applied to a second device and may include S201 to S202.
[0058] S201: In response to receiving first target identification information and first voice information from a first device, determining a target translation mode from a plurality of translation modes according to the first target identification information.
[0059] In this embodiment, when the second device receives the first target identification information and the first voice information from the first device, the second device can interpret the received first target identification information, which can be used as a specific "instruction password" and can contain key instructions about the translation mode. According to the first target identification information, the second device can screen and match among multiple translation modes that are pre-stored or callable, and determine a target translation mode that meets the requirements.
[0060] For example, a Chinese tourist (first user) travels to Russia. He wears smart glasses as the first device and a mobile phone as the second device. In a restaurant, the tourist wants to order a "borscht", so he clicks the first button on the smart glasses and issues a first trigger instruction, which represents the chat mode. He said: "I want a borscht." After receiving the first trigger instruction, the smart glasses generate the first target identification information and send the voice information of this sentence to the mobile phone. After receiving the voice information, the mobile phone determines the target translation mode suitable for the dining scene from multiple translation modes according to the first target identification information. "I want a borscht." is translated into Russian "Я хочу одну порцию борща." and played, so that the restaurant waiter can understand the needs of the tourists.
[0061] When the Russian waiter responded to the tourist, "Будет через несколько минут." (It will only take a few minutes.) After receiving this Russian voice, the mobile phone also selects the corresponding chat mode according to the first target identification information, translates it into "It will only take a few minutes." and sends it to the smart glasses, which can play this translation so that the tourist can understand what the waiter means and achieve smooth communication. Among them, the voice output device on the smart glasses can be heard by the first user (tourist) through bone conduction.
[0062] S202: Translate the first voice information based on the target translation mode, generate and play the first translation information.
[0063] Among them, the first device is a device that establishes a connection with the second device, the first target identification information is the identification information generated by the first device when it receives a trigger instruction, the first voice information is the voice information of the first user, and the first user is a user wearing the first device.
[0064] In this embodiment, after determining the target translation mode, the second device can import the first voice information into the target translation mode for processing. The first voice information is converted into a processable text form, and the text is translated according to the rules, algorithms and language knowledge set by the target translation mode. After the translation is completed, the second device can generate the first translation information from the translation result, and play it through its own audio output device, so that the recipient can hear the translated content, thereby achieving the purpose of cross-language communication.
[0065] For example, at an international medical seminar, a doctor wears a first device (such as a smart bracelet), and his assistant holds a second device (such as a mobile phone). When the doctor speaks, he sends a trigger command through the smart bracelet, which generates a first target identification information and sends his first voice message "This new type of drug has shown significant efficacy in clinical trials, but its long-term side effects still need further observation" to the mobile phone. After receiving the message, the mobile phone determines that the target translation mode is the conference mode according to the first target identification information. The voice is translated to generate "This new type of drug has shown significant efficacy in clinical trials, but its long-term side effects still need further observation." and played out so that the international friends present can understand it accurately.
[0066] It can be concluded from the above that this embodiment greatly improves the flexibility and adaptability of translation. By receiving the first target identification information from the first device, it is possible to accurately determine the appropriate target translation mode from multiple translation modes, so as to cope with various communication scenarios and user needs. Whether it is formal business communication, academic seminars, or relaxed daily conversations, the most appropriate and accurate translation results can be provided. This embodiment optimizes resource utilization and work efficiency. The second device can focus on translation processing, give full play to its performance advantages, and avoid unnecessary waste of resources. The first voice information is quickly and accurately translated, which reduces the processing time, improves the efficiency of the entire translation process, makes the communication more smooth and natural, and does not affect the rhythm of communication due to the delay of translation. This embodiment enhances the coherence of the user experience. Due to the ability to seamlessly connect and work in collaboration with the first device, the user does not need to frequently switch between different devices or platforms during use, which reduces the complexity of the operation and provides a more convenient and comfortable user experience, allowing users to focus more on the communication itself instead of being troubled by technical problems.
[0067] In one embodiment of the present disclosure, the translation method applied to the second device further includes:
[0068] In response to receiving the second voice information, the second voice information is translated to obtain second translation information.
[0069] Second target identification information is determined based on the second voice information.
[0070] The second target identification information and the second translation information are sent to the first device.
[0071] The second target identification information is used to instruct the first device to determine a target broadcast mode from multiple broadcast modes according to the second target identification information, and to instruct the first device to broadcast the second translation information based on the target broadcast mode.
[0072] Among them, the multiple broadcast modes have different broadcast styles, and the second voice information is the voice information of the second user, and the second user is the user who has a conversation with the first user.
[0073] In this embodiment, after the second device receives the second voice information of the second user, the second voice information can be translated into corresponding second translation information. While completing the translation, the second device can analyze the second voice information and extract features such as speech speed, intonation, emotional color, language type, etc. Based on these features, the second target identification information is determined from a plurality of different identification information set in advance. The second device sends the determined second target identification information and the second translation information to the first device together. After the first device receives these two sets of information, it can select a target broadcast mode from a plurality of broadcast modes stored therein according to the second target identification information. The first device broadcasts the second translation information according to the selected target broadcast mode and presents it to the first user in a suitable style.
[0074] For example, in an international trade negotiation, a Chinese representative (first user) wears smart glasses (first device) and talks with a foreign representative (second user). The foreign representative says in French: "Je pense que cette théorie a besoin d'être approfondie." (I think this theory needs further study.)" The second device (which can be the first user's mobile phone) translates it into "I think this theory needs further study." At the same time, the voice characteristics of the French voice information and the formal scene of the meeting are analyzed to determine a formal and clear broadcast mode, and generate the corresponding second target identification information. The second target identification information and the translation information are sent to the smart glasses of the Chinese representative. After receiving it, the smart glasses adopt a formal and serious broadcast mode according to the target identification information, and broadcast the translation content with a calm tone, moderate speed and matching timbre, so that the Chinese representative can accurately receive and respond.
[0075] In this embodiment, the personalized broadcast mode selection enhances the communication experience. According to the target identification information determined by the second voice information, a suitable broadcast mode is provided for the first device, so that the presentation of the translated content is more in line with the communication situation, whether it is a formal, relaxed or urgent scene, the information can be conveyed in an appropriate style. This method improves the naturalness and fluency of communication. The first device can broadcast the translated information in the most appropriate way, reducing the understanding deviation or poor communication caused by improper broadcast mode, making cross-language communication more natural and smooth.
[0076] In one embodiment of the present disclosure, determining the second target identification information based on the second voice information includes:
[0077] A plurality of speech features of the second speech information is determined.
[0078] The second target identification information is determined from the plurality of identification information based on the plurality of speech features.
[0079] In this embodiment, after the second device receives the second voice information, it can analyze it to determine multiple voice features. These voice features may include at least one of timbre, speech speed, intonation, volume, accent, emotional color, and language rhythm. These extracted voice features are matched and compared with the feature patterns corresponding to the preset multiple identification information.
[0080] For example, some identification information may correspond to faster speech speed, high tone and strong emotional color. Other identification information may be related to slower speech speed, low tone and calm emotional color. Through comprehensive consideration and precise matching of multiple voice features, the identification information that best matches the current second voice information feature is selected from a large number of identification information and determined as the second target identification information.
[0081] By determining multiple voice features, this embodiment can more comprehensively understand the characteristics of the second voice information, thereby selecting the target identification information that best fits the actual situation, so that the translated broadcast is more consistent with the intention and emotion of the original voice. This embodiment can accurately capture voice features and select identification information accordingly, which helps to present the translation content in a more natural way, reduce communication barriers caused by improper broadcast mode, and enable both parties to understand each other more smoothly.
[0082] In one embodiment of the present disclosure, the plurality of identification information includes a plurality of speech rate preference identifications, a plurality of timbre feature identifications and a plurality of emotion tendency identifications.
[0083] Determining second target identification information from multiple identification information based on multiple voice features includes:
[0084] The second target identification information is determined from a plurality of speech rate preference identifications, a plurality of timbre feature identifications, and a plurality of emotion tendency identifications based on a plurality of speech features.
[0085] The second target identification information includes a target speech speed preference identification, a target timbre feature identification and a target emotional tendency identification.
[0086] In this embodiment, multiple speaking speed preference identifiers may include a first speaking speed preference identifier, a second speaking speed preference identifier, and a third speaking speed preference identifier, the speaking speed indicated by the first speaking speed preference identifier is less than the speaking speed indicated by the second speaking speed preference identifier, and the speaking speed indicated by the second speaking speed preference identifier is less than the speaking speed indicated by the third speaking speed preference identifier.
[0087] The plurality of timbre characteristic identifiers may include a first timbre characteristic identifier, a second timbre characteristic identifier and a third timbre characteristic identifier. The timbre is determined by the spectrum of the sound. The first timbre characteristic identifier may indicate that the timbre is bright, i.e., in the spectrum of the sound, the high-frequency component is relatively prominent. The second timbre characteristic identifier may indicate that the timbre is low, i.e., the low-frequency component accounts for a relatively large proportion in the spectrum of the sound. The third timbre characteristic identifier may indicate a neutral timbre, i.e., in the spectrum of the sound, the high, medium and low frequency components on the spectrum are relatively evenly distributed.
[0088] The plurality of emotional tendency identifiers may include a first emotional tendency, a second emotional tendency and a third emotional tendency. The first emotional tendency may represent a positive emotional tendency, the second emotional tendency may represent a neutral emotional tendency, and the third emotional tendency may represent a negative emotional tendency.
[0089] Exemplarily, the original voice signal can be obtained through the microphone on the smart glasses or other audio acquisition devices. And the voice signal is preprocessed and feature extracted. For example, the voice signal is pre-emphasized through a high-pass filter to enhance the energy of the high-frequency part and compensate for the high-frequency attenuation of the voice signal during transmission. The voice signal is divided into shorter frames, usually 10 to 30 milliseconds in length per frame. It can be assumed that the voice signal is relatively stable in each frame. A window function, such as a Hamming window or a Hanning window, is applied to each frame to reduce the discontinuity at both ends of the frame. Commonly used window functions can make the signals at both ends of the frame gradually transition to zero, thereby reducing spectral leakage. The time domain features can be extracted using the autocorrelation function and the variance of the waveform change of the voice signal. The time domain signal is converted into a frequency domain signal based on the fast Fourier transform to obtain the spectrum information of the voice signal. The timbre features can be classified by the extracted spectrum information.
[0090] For example, the speech rate preference feature can be determined by analyzing the duration of speech, pause interval, duration of syllables or words, etc. For example, the change in the time interval between adjacent frames is calculated, or the number of speech frames in a specific time period is counted. The timbre is related to the spectral characteristics of speech. In addition to the above-mentioned frequency domain features, the use of linear prediction coefficients and other methods can also be considered. The linear prediction coefficients are a set of parameters obtained by performing linear prediction analysis on the speech signal, which can reflect the vocal tract characteristics of the speech.
[0091] Exemplarily, a dictionary containing sentiment words and their corresponding sentiment tendencies can be constructed by manual annotation or by using an existing sentiment dictionary. The text to be analyzed is preprocessed, including operations such as word segmentation and part-of-speech tagging. The words in the text are matched with the sentiment dictionary to find the sentiment words therein. According to the sentiment tendencies of the sentiment words in the sentiment dictionary, a corresponding score is assigned to each sentiment word. The scoring rules can be set according to the specific situation, for example, positive words get positive scores and negative words get negative scores. The scores of all sentiment words are comprehensively calculated, and the final sentiment tendency score can be obtained by weighted average, summation, etc. The corresponding sentiment tendency identifier is matched based on the sentiment tendency score, the first threshold and the second threshold.
[0092] This embodiment significantly improves the user experience. By comprehensively considering multiple voice features, such as speech speed, timbre, and emotional tendency, the system can more accurately identify and determine the user's personalized needs. This not only makes the generated voice output closer to the user's expectations, but also greatly enhances the naturalness and fluency of voice interaction.
[0093] In one embodiment of the present disclosure, the multiple broadcast modes include multiple speech speed broadcast modes, multiple timbre broadcast modes and multiple emotion tendency broadcast modes.
[0094] Determining a target broadcast mode from a plurality of broadcast modes according to the second target identification information includes:
[0095] A target speech rate broadcasting mode is determined from a plurality of speech rate broadcasting modes based on the target speech rate preference identifier.
[0096] A target timbre broadcasting mode is determined from a plurality of timbre broadcasting modes based on the target timbre feature identifier.
[0097] A target emotional tendency broadcasting mode is determined from multiple emotional tendency broadcasting modes based on the target emotional tendency identifier.
[0098] In this embodiment, after receiving the second voice information, it can be comprehensively analyzed to determine multiple voice features including speech speed, intonation, volume, brightness or lowness of the voice, etc. These voice features are matched with multiple speech speed preference identifiers (such as fast, medium, slow), multiple timbre feature identifiers (such as crisp, low, hoarse) and multiple emotional tendency identifiers (such as cheerful, serious, sad). For example, if the second voice information has a fast speech speed, bright timbre, and cheerful emotion, the corresponding second target identification information with a target speech speed preference identifier of "fast", a target timbre feature identifier of "crisp", and a target emotional tendency identifier of "cheerful" can be determined from multiple identification information.
[0099] For example, in a discussion of a transnational charity event, the second user is a gentle and compassionate foreign volunteer who says, "We should do more to help those in need." The second device analyzes his voice features as moderate speech speed, soft timbre, and caring emotional tendency. Thus, the second target identification information with the target speech speed preference identifier as "medium", the target timbre feature identifier as "soft", and the target emotional tendency identifier as "caring" is determined, and sent to the first device for broadcasting in the corresponding style.
[0100] This embodiment can accurately match the user's voice characteristics, making the translation broadcast more in line with the original expression style, and enhancing the accuracy and naturalness of communication. This embodiment meets different scenarios and emotional needs and improves communication effects by identifying and matching speech speed, timbre and emotional tendencies. Make the translation service more personalized and humane, whether it is an urgent, soothing, cheerful or serious communication situation, it can be presented in the most appropriate way, optimize the user experience, and promote more effective and comfortable cross-language communication.
[0101] In an embodiment of the present disclosure, the multiple translation modes include a conference mode and a chat mode, the trigger instruction includes a first instruction or a second instruction, and the first target identification information includes a first translation mode identification and a second translation mode identification.
[0102] Determining a target translation mode from a plurality of translation modes according to the first target identification information also includes:
[0103] In response to the trigger instruction being the first instruction, a first translation mode identifier is generated, and based on the first translation mode identifier, the target translation mode is determined to be the conference mode.
[0104] In response to the trigger instruction being the second instruction, a second translation mode identifier is generated, and based on the second translation mode identifier, the target translation mode is determined to be the small talk mode.
[0105] In this embodiment, the first device can receive a trigger instruction from the first user. This trigger instruction is divided into a first instruction and a second instruction. When the received trigger instruction is the first instruction, the first device will generate a corresponding first translation mode identifier. After the second device receives this first translation mode identifier, it knows that the target translation mode should be determined as a conference mode. The conference mode usually has formal, accurate, and professional translation characteristics, focusing on terminology and rigorous language expression. When the trigger instruction is the second instruction, the first device generates a second translation mode identifier. The second device determines the target translation mode as a chat mode based on this identifier. The translation of the chat mode will tend to be more colloquial, natural, and flexible, and may contain some buzzwords and more casual expressions.
[0106] For example, in a business meeting scenario of a multinational company, the first user is a Chinese manager wearing smart glasses as the first device. When the manager is ready to introduce an important business plan to a foreign partner, he taps a specific button on the smart glasses to send a first instruction. The smart glasses generate a first translation mode identifier and send it to the mobile phone as the second device together with the voice information to be spoken. After receiving the identifier, the mobile phone determines that the target translation mode is the conference mode. For example, the manager says: "Our new product has a unique competitive advantage and a broadmarket prospect." The mobile phone can translate it in a formal and accurate manner into: "Our new product has a unique competitive advantage and a broadmarket prospect." This allows foreign partners to clearly and accurately understand the business content.
[0107] In the casual communication after the meeting, the manager tapped the smart glasses again to send the second command. When he said, "Today's meeting was really tiring, but it was very rewarding," the phone could translate it in a more relaxed, colloquial chat mode into, "Today's meeting was really tiring, but it was very rewarding," creating a relaxed and friendly communication atmosphere.
[0108] This embodiment can meet the needs of different communication scenarios, making conference communication more professional and accurate, and chatting more natural and casual, thus improving the quality of communication. It is convenient for users to flexibly choose according to specific situations, and the operation is simple and convenient. It improves the pertinence and adaptability of translation and avoids the limitations of a single mode.
[0109] refer to Figure 3 , Figure 3 A schematic diagram of a signaling interaction process between devices provided in an embodiment of the present disclosure. The signaling interaction process between the first device and the second device is as follows:
[0110] A01: The first target identification information is generated.
[0111] The first device generates first target identification information in response to the received trigger instruction.
[0112] A02: Send the first target identification information and the first voice information.
[0113] The first device sends the first target identification information and the first voice information to the second device, where the first target identification information is used to instruct the second device to determine a target translation mode from multiple translation modes according to the first target identification information, and to instruct the second device to translate the first voice information based on the target translation mode, and to generate and play the first translation information.
[0114] Among them, the translation styles of the multiple translation modes are different, the second device is a device that establishes a connection with the first device, the first voice information is the voice information of the first user, and the first user is a user wearing the first device.
[0115] A03: Determine the target translation mode.
[0116] In response to receiving the first target identification information and the first voice information from the first device, the second device determines a target translation mode from a plurality of translation modes according to the first target identification information.
[0117] A04: Generate and play the first translation information.
[0118] The second device translates the first voice information based on the target translation mode, generates and plays the first translation information.
[0119] Among them, the first device is a device that establishes a connection with the second device, the first target identification information is the identification information generated by the first device when it receives a trigger instruction, the first voice information is the voice information of the first user, and the first user is a user wearing the first device.
[0120] refer to Figure 4 , Figure 4 A schematic diagram of a signaling interaction process between devices provided in another embodiment of the present disclosure. The signaling interaction process between the first device and the second device is as follows:
[0121] B01: Second translation information generation.
[0122] In response to receiving the second voice information, the second device translates the second voice information to obtain second translation information.
[0123] B02: Determine the second target identification information.
[0124] The second device determines second target identification information based on the second voice information.
[0125] B03: Send the second target identification information and the second translation information.
[0126] The second device sends the second target identification information and the second translation information to the first device.
[0127] The second target identification information is used to instruct the first device to determine a target broadcast mode from multiple broadcast modes according to the second target identification information, and to instruct the first device to broadcast the second translation information based on the target broadcast mode.
[0128] B04: Determine the target broadcast mode.
[0129] In response to receiving the second target identification information and the second translation information, the first device determines a target broadcast mode from a plurality of broadcast modes according to the second target identification information.
[0130] B05: Report the second translation information.
[0131] The first device broadcasts the second translation information based on the target broadcast mode.
[0132] Among them, the second target identification information is the identification information determined by the second device based on the second voice information, the second translation information is the information obtained by the second device translating the second voice information, the multiple broadcast modes have different broadcast styles, the second voice information is the voice information of the second user, and the second user is the user who has a conversation with the first user.
[0133] Corresponding to the translation method applied to the first device in the above embodiment, Figure 5 This is a structural block diagram of a translation device applied to a first device provided by an embodiment of the present disclosure. For ease of explanation, only the parts related to the embodiment of the present disclosure are shown. Figure 5 , the translation device 30 comprises:
[0134] The first response module 31 is used to generate first target identification information in response to a received trigger instruction.
[0135] The first translation module 32 sends the first target identification information and the first voice information to the second device, wherein the first target identification information is used to instruct the second device to determine a target translation mode from a plurality of translation modes according to the first target identification information, and to instruct the second device to translate the first voice information based on the target translation mode, and to generate and play the first translation information.
[0136] Among them, the translation styles of the multiple translation modes are different, the second device is a device that establishes a connection with the first device, the first voice information is the voice information of the first user, and the first user is a user wearing the first device.
[0137] In one embodiment of the present disclosure, the translation apparatus 30 applied to the first device further includes:
[0138] The third response module is used to determine a target broadcast mode from multiple broadcast modes according to the second target identification information in response to receiving the second target identification information and the second translation information.
[0139] The first broadcasting module is used to broadcast the second translation information based on the target broadcasting mode.
[0140] Among them, the second target identification information is the identification information determined by the second device based on the second voice information, the second translation information is the information obtained by the second device translating the second voice information, the multiple broadcast modes have different broadcast styles, the second voice information is the voice information of the second user, and the second user is the user who has a conversation with the first user.
[0141] Corresponding to the translation method applied to the second device in the above embodiment, Figure 6 This is a structural block diagram of a translation device applied to a second device provided by an embodiment of the present disclosure. For ease of explanation, only the parts related to the embodiment of the present disclosure are shown. Figure 6 , the translation device 40 comprises:
[0142] The second response module 41 is configured to determine a target translation mode from a plurality of translation modes according to the first target identification information in response to receiving the first target identification information and the first voice information from the first device.
[0143] The second translation module 42 is used to translate the first voice information based on the target translation mode, and generate and play the first translation information.
[0144] Among them, the first device is a device that establishes a connection with the second device, the first target identification information is the identification information generated by the first device when it receives a trigger instruction, the first voice information is the voice information of the first user, and the first user is a user wearing the first device.
[0145] In one embodiment of the present disclosure, the translation device 40 applied to the second device further includes:
[0146] The fourth response module is used to translate the second voice information in response to receiving the second voice information to obtain second translation information.
[0147] The first calculation module is used to determine the second target identification information based on the second voice information.
[0148] The first interaction module sends the second target identification information and the second translation information to the first device.
[0149] The second target identification information is used to instruct the first device to determine a target broadcast mode from multiple broadcast modes according to the second target identification information, and to instruct the first device to broadcast the second translation information based on the target broadcast mode.
[0150] Among them, the multiple broadcast modes have different broadcast styles, and the second voice information is the voice information of the second user, and the second user is the user who has a conversation with the first user.
[0151] In one embodiment of the present disclosure, the first calculation module includes:
[0152] The first calculation unit is used to determine multiple voice features of the second voice information.
[0153] The second calculation unit is used to determine second target identification information from multiple identification information based on multiple voice features.
[0154] In an embodiment of the present disclosure, the first calculation unit is specifically configured to determine a plurality of speech features of the second speech information.
[0155] The second target identification information is determined from the plurality of identification information based on the plurality of speech features.
[0156] In one embodiment of the present disclosure, the plurality of identification information includes a plurality of speech rate preference identifications, a plurality of timbre feature identifications and a plurality of emotion tendency identifications. The second calculation unit is specifically configured to determine the second target identification information from the plurality of speech rate preference identifications, the plurality of timbre feature identifications and the plurality of emotion tendency identifications based on the plurality of speech features.
[0157] The second target identification information includes a target speech speed preference identification, a target timbre feature identification and a target emotional tendency identification.
[0158] In one embodiment of the present disclosure, the multiple broadcast modes include multiple speech speed broadcast modes, multiple timbre broadcast modes and multiple emotion tendency broadcast modes.
[0159] The first interaction module is specifically configured to determine a target speech speed broadcasting mode from a plurality of speech speed broadcasting modes based on a target speech speed preference identifier.
[0160] A target timbre broadcasting mode is determined from a plurality of timbre broadcasting modes based on the target timbre feature identifier.
[0161] A target emotional tendency broadcasting mode is determined from multiple emotional tendency broadcasting modes based on the target emotional tendency identifier.
[0162] In an embodiment of the present disclosure, the multiple translation modes include a conference mode and a chat mode, the trigger instruction includes a first instruction or a second instruction, and the first target identification information includes a first translation mode identification and a second translation mode identification.
[0163] The second response module 41 is specifically configured to generate a first translation mode identifier in response to the trigger instruction being the first instruction, and determine that the target translation mode is the conference mode based on the first translation mode identifier.
[0164] In response to the trigger instruction being the second instruction, a second translation mode identifier is generated, and based on the second translation mode identifier, the target translation mode is determined to be the small talk mode.
[0165] See also Figure 7 , Figure 7 A schematic block diagram of a wearable device provided by an embodiment of the present disclosure. Figure 7 The wearable device 50 in the embodiment shown may include: one or more first processors 51, one or more first input devices 52, one or more first output devices 53 and one or more first memories 54. The first processor 51, the first input device 52, the first output device 53 and the first memory 54 communicate with each other through a communication bus 55. The first memory 54 is used to store computer programs, and the computer programs include program instructions. The first processor 51 is used to execute the program instructions stored in the first memory 54. Among them, the first processor 51 is configured to call the program instructions to execute the functions of each module / unit in the above-mentioned device embodiments, such as Figure 5 The functions of the modules 31 to 32 are shown.
[0166] It should be understood that in the embodiment of the present disclosure, the so-called first processor 51 may be a central processing unit (CPU), and the first processor may also be other general-purpose first processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose first processor may be a micro first processor or the first processor may also be any conventional first processor, etc.
[0167] The first memory 54 may include a read-only first memory and a random access first memory, and provide instructions and data to the first processor 51. A portion of the first memory 54 may also include a nonvolatile random access first memory. For example, the first memory 54 may also store information on the device type.
[0168] In a specific implementation, the first processor 51, the first input device 52, and the first output device 53 described in the embodiments of the present disclosure can execute the implementation methods described in the first and second embodiments of the translation method provided in the embodiments of the present disclosure, and can also execute the implementation methods of the wearable device described in the embodiments of the present disclosure, which will not be repeated here.
[0169] See also Figure 8 , Figure 8 This is a schematic block diagram of a terminal device provided by an embodiment of the present disclosure. Figure 8The terminal device 60 in the embodiment shown may include: one or more second processors 61, one or more second input devices 62, one or more second output devices 63 and one or more second memories 64. The second processor 61, the second input device 62, the second output device 63 and the second memory 64 communicate with each other via a communication bus 65. The second memory 64 is used to store computer programs, which include program instructions. The second processor 61 is used to execute the program instructions stored in the second memory 64. The second processor 61 is configured to call the program instructions to execute the functions of each module / unit in the above-mentioned device embodiments, such as Figure 6 The functions of the modules 41 to 42 are shown.
[0170] It should be understood that in the embodiment of the present disclosure, the so-called second processor 61 may be a central processing unit (CPU), and the second processor may also be other general second processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general second processor may be a micro second processor or the second processor may also be any conventional second processor, etc.
[0171] The second input device 62 may include a touch panel, a fingerprint collection sensor (for collecting the user's fingerprint information and fingerprint direction information), a microphone, etc. The second output device 63 may include a display (LCD, etc.), a speaker, etc.
[0172] The second memory 64 may include a read-only second memory and a random access second memory, and provide instructions and data to the second processor 61. A portion of the second memory 64 may also include a nonvolatile random access second memory. For example, the second memory 64 may also store information on the device type.
[0173] In a specific implementation, the second processor 61, the second input device 62, and the second output device 63 described in the embodiments of the present disclosure can execute the implementation methods described in the first and second embodiments of the translation method provided in the embodiments of the present disclosure, and can also execute the implementation methods of the terminal device described in the embodiments of the present disclosure, which will not be repeated here.
[0174] In another embodiment of the present disclosure, a computer-readable storage medium applied to a first device is provided, the computer-readable storage medium stores a computer program, the computer program includes program instructions, and when the program instructions are executed by a processor, all or part of the processes in the embodiment of the translation method applied to the first device are implemented, and the computer program can also be used to instruct related hardware to complete. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, the steps of each of the above method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc.
[0175] The computer-readable storage medium may be an internal storage unit of a wearable device of any embodiment of the aforementioned translation method applied to the first device, such as a hard disk or memory of the wearable device. The computer-readable storage medium may also be an external storage device of the wearable device. Furthermore, the computer-readable storage medium may also include both an internal storage unit of the wearable device and an external storage device. The computer-readable storage medium is used to store computer programs and other programs and data required by the wearable device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
[0176] In another embodiment of the present disclosure, a computer-readable storage medium applied to a second device is provided, the computer-readable storage medium stores a computer program, the computer program includes program instructions, the program instructions are executed by the processor to implement all or part of the process in the embodiment of the translation method applied to the second device, and can also be completed by instructing related hardware through the computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium, etc.
[0177] The computer-readable storage medium may be an internal storage unit of a terminal device of any embodiment of the aforementioned translation method applied to a second device, such as a hard disk or memory of the terminal device. The computer-readable storage medium may also be an external storage device of the terminal device, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the terminal device. Furthermore, the computer-readable storage medium may also include both an internal storage unit of the terminal device and an external storage device. The computer-readable storage medium is used to store computer programs and other programs and data required by the terminal device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
[0178] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this disclosure.
[0179] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the wearable device, terminal device and unit described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.
[0180] In the several embodiments provided in the present application, it should be understood that the disclosed wearable devices, terminal devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces or units, or it can be an electrical, mechanical or other form of connection.
[0181] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present disclosure.
[0182] In addition, each functional unit in each embodiment of the present disclosure may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0183] The above are only specific embodiments of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present disclosure, and these modifications or replacements should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A translation method, characterized in that: Applied to the second device, comprising: In response to receiving first target identification information and first voice information from a first device, determining a target translation mode from a plurality of translation modes according to the first target identification information; Translate the first voice information based on the target translation mode, generate and play first translation information; The first device is a device that establishes a connection with the second device, the first target identification information is identification information generated by the first device after receiving a trigger instruction, the first voice information is voice information of a first user, and the first user is a user wearing the first device; The translation method further includes: In response to receiving the second voice information, translating the second voice information to obtain second translation information; Determining second target identification information based on the second voice information; sending the second target identification information and the second translation information to the first device; The second target identification information is used to instruct the first device to determine a target broadcast mode from multiple broadcast modes according to the second target identification information, and to instruct the first device to broadcast the second translation information based on the target broadcast mode; The multiple broadcast modes have different broadcast styles, the second voice information is the voice information of the second user, and the second user is the user who is in conversation with the first user; The determining the second target identification information based on the second voice information includes: determining a plurality of speech features of the second speech information; Determining the second target identification information from a plurality of identification information based on the plurality of voice features; The multiple identification information includes multiple speech rate preference identifications, multiple timbre feature identifications and multiple emotion tendency identifications; The determining the second target identification information from the plurality of identification information based on the plurality of voice features comprises: Determine second target identification information from the multiple speech rate preference identifications, the multiple timbre feature identifications, and the multiple emotion tendency identifications based on the multiple voice features; The second target identification information includes a target speech speed preference identification, a target timbre feature identification and a target emotional tendency identification; The multiple speech rate preference identifiers include a first speech rate preference identifier, a second speech rate preference identifier, and a third speech rate preference identifier, the speech rate indicated by the first speech rate preference identifier is less than the speech rate indicated by the second speech rate preference identifier, and the speech rate indicated by the second speech rate preference identifier is less than the speech rate indicated by the third speech rate preference identifier; The multiple timbre characteristic identifiers include a first timbre characteristic identifier, a second timbre characteristic identifier and a third timbre characteristic identifier; the first timbre characteristic identifier indicates a bright timbre, the second timbre characteristic identifier indicates a deep timbre, and the third timbre characteristic identifier indicates a neutral timbre; The multiple emotional tendency identifiers include a first emotional tendency, a second emotional tendency and a third emotional tendency; the first emotional tendency represents a positive emotional tendency, the second emotional tendency represents a neutral emotional tendency, and the third emotional tendency represents a negative emotional tendency.
2. The translation method according to claim 1, characterized in that: The multiple broadcast modes include multiple speech speed broadcast modes, multiple timbre broadcast modes and multiple emotional tendency broadcast modes; The determining the target broadcast mode from a plurality of broadcast modes according to the second target identification information includes: Determining a target speech speed broadcasting mode from the multiple speech speed broadcasting modes based on the target speech speed preference identifier; Determining a target timbre broadcasting mode from the plurality of timbre broadcasting modes based on the target timbre feature identifier; A target emotional tendency broadcasting mode is determined from the multiple emotional tendency broadcasting modes based on the target emotional tendency identifier.
3. The translation method according to claim 1, characterized in that: The multiple translation modes include a conference mode and a chat mode, the trigger instruction includes a first instruction or a second instruction, and the first target identification information includes a first translation mode identification and a second translation mode identification; The step of determining a target translation mode from a plurality of translation modes according to the first target identification information further includes: In response to the trigger instruction being a first instruction, generating a first translation mode identifier, and determining that the target translation mode is the conference mode based on the first translation mode identifier; In response to the trigger instruction being a second instruction, a second translation mode identifier is generated, and based on the second translation mode identifier, the target translation mode is determined to be the small talk mode.
4. A translation method, characterized in that: Applied to a first device, comprising: In response to the received trigger instruction, generating first target identification information; Sending the first target identification information and the first voice information to a second device, wherein the first target identification information is used to instruct the second device to determine a target translation mode from a plurality of translation modes according to the first target identification information, and to instruct the second device to translate the first voice information based on the target translation mode, and to generate and play the first translation information; The translation styles of the multiple translation modes are different, the second device is a device connected to the first device, the first voice information is the voice information of the first user, and the first user is a user wearing the first device; The translation method further includes: In response to receiving the second target identification information and the second translation information, determining a target broadcast mode from a plurality of broadcast modes according to the second target identification information; broadcasting the second translation information based on the target broadcasting mode; The second target identification information is identification information determined by the second device based on the second voice information, the second translation information is information obtained by translating the second voice information by the second device, the multiple broadcast modes have different broadcast styles, the second voice information is voice information of a second user, and the second user is a user having a conversation with the first user; The second device determines the second target identification information based on the second voice information, including: determining a plurality of speech features of the second speech information; Determining the second target identification information from a plurality of identification information based on the plurality of voice features; The multiple identification information includes multiple speech rate preference identifications, multiple timbre feature identifications and multiple emotion tendency identifications; The determining the second target identification information from the plurality of identification information based on the plurality of voice features comprises: Determine second target identification information from the multiple speech rate preference identifications, the multiple timbre feature identifications, and the multiple emotion tendency identifications based on the multiple voice features; The second target identification information includes a target speech speed preference identification, a target timbre feature identification and a target emotional tendency identification; The multiple speech rate preference identifiers include a first speech rate preference identifier, a second speech rate preference identifier, and a third speech rate preference identifier, the speech rate indicated by the first speech rate preference identifier is less than the speech rate indicated by the second speech rate preference identifier, and the speech rate indicated by the second speech rate preference identifier is less than the speech rate indicated by the third speech rate preference identifier; The multiple timbre characteristic identifiers include a first timbre characteristic identifier, a second timbre characteristic identifier and a third timbre characteristic identifier; the first timbre characteristic identifier indicates a bright timbre, the second timbre characteristic identifier indicates a deep timbre, and the third timbre characteristic identifier indicates a neutral timbre; The multiple emotional tendency identifiers include a first emotional tendency, a second emotional tendency and a third emotional tendency; the first emotional tendency represents a positive emotional tendency, the second emotional tendency represents a neutral emotional tendency, and the third emotional tendency represents a negative emotional tendency.
5. A translation device applied to a first device, characterized in that: include: A first response module, configured to generate first target identification information in response to a received trigger instruction; A first translation module, configured to send the first target identification information and the first voice information to a second device, wherein the first target identification information is used to instruct the second device to determine a target translation mode from a plurality of translation modes according to the first target identification information, and to instruct the second device to translate the first voice information based on the target translation mode, and to generate and play the first translation information; The translation styles of the multiple translation modes are different, the second device is a device connected to the first device, the first voice information is the voice information of the first user, and the first user is a user wearing the first device; The translation device further comprises: a third response module, configured to, in response to receiving the second target identification information and the second translation information, determine a target broadcast mode from a plurality of broadcast modes according to the second target identification information; A first broadcasting module, configured to broadcast the second translation information based on the target broadcasting mode; The second target identification information is identification information determined by the second device based on the second voice information, the second translation information is information obtained by translating the second voice information by the second device, the multiple broadcast modes have different broadcast styles, the second voice information is voice information of a second user, and the second user is a user having a conversation with the first user; The first broadcast module includes: A first computing unit, configured to determine a plurality of speech features of the second speech information; A second calculation unit, configured to determine the second target identification information from a plurality of identification information based on the plurality of speech features; The plurality of identification information includes a plurality of speech rate preference identifications, a plurality of timbre feature identifications and a plurality of emotion tendency identifications; the second calculation unit is specifically used to determine the second target identification information from the plurality of speech rate preference identifications, the plurality of timbre feature identifications and the plurality of emotion tendency identifications based on the plurality of speech features; The second target identification information includes a target speech speed preference identification, a target timbre feature identification and a target emotional tendency identification; The multiple speech rate preference identifiers include a first speech rate preference identifier, a second speech rate preference identifier, and a third speech rate preference identifier, the speech rate indicated by the first speech rate preference identifier is less than the speech rate indicated by the second speech rate preference identifier, and the speech rate indicated by the second speech rate preference identifier is less than the speech rate indicated by the third speech rate preference identifier; The multiple timbre characteristic identifiers include a first timbre characteristic identifier, a second timbre characteristic identifier and a third timbre characteristic identifier; the first timbre characteristic identifier indicates a bright timbre, the second timbre characteristic identifier indicates a deep timbre, and the third timbre characteristic identifier indicates a neutral timbre; The multiple emotional tendency identifiers include a first emotional tendency, a second emotional tendency and a third emotional tendency; the first emotional tendency represents a positive emotional tendency, the second emotional tendency represents a neutral emotional tendency, and the third emotional tendency represents a negative emotional tendency.
6. A translation device applied to a second device, characterized in that: include: a second response module, configured to determine a target translation mode from a plurality of translation modes according to the first target identification information in response to receiving the first target identification information and the first voice information from the first device; A second translation module, configured to translate the first voice information based on the target translation mode, and generate and play first translation information; The first device is a device that establishes a connection with the second device, the first target identification information is identification information generated by the first device after receiving a trigger instruction, the first voice information is voice information of a first user, and the first user is a user wearing the first device; The translation device further comprises: a fourth response module, configured to translate the second voice information in response to receiving the second voice information, and obtain second translation information; A first calculation module, used to determine second target identification information based on the second voice information; A first interaction module, configured to send the second target identification information and the second translation information to the first device; The second target identification information is used to instruct the first device to determine a target broadcast mode from multiple broadcast modes according to the second target identification information, and to instruct the first device to broadcast the second translation information based on the target broadcast mode; The multiple broadcast modes have different broadcast styles, the second voice information is the voice information of the second user, and the second user is the user who is in conversation with the first user; The first calculation module includes: A first computing unit, configured to determine a plurality of speech features of the second speech information; A second calculation unit, configured to determine the second target identification information from a plurality of identification information based on the plurality of speech features; The plurality of identification information includes a plurality of speech rate preference identifications, a plurality of timbre feature identifications and a plurality of emotion tendency identifications; the second calculation unit is specifically used to determine the second target identification information from the plurality of speech rate preference identifications, the plurality of timbre feature identifications and the plurality of emotion tendency identifications based on the plurality of speech features; The second target identification information includes a target speech speed preference identification, a target timbre feature identification and a target emotional tendency identification; The multiple speech rate preference identifiers include a first speech rate preference identifier, a second speech rate preference identifier, and a third speech rate preference identifier, the speech rate indicated by the first speech rate preference identifier is less than the speech rate indicated by the second speech rate preference identifier, and the speech rate indicated by the second speech rate preference identifier is less than the speech rate indicated by the third speech rate preference identifier; The multiple timbre characteristic identifiers include a first timbre characteristic identifier, a second timbre characteristic identifier and a third timbre characteristic identifier; the first timbre characteristic identifier indicates a bright timbre, the second timbre characteristic identifier indicates a deep timbre, and the third timbre characteristic identifier indicates a neutral timbre; The multiple emotional tendency identifiers include a first emotional tendency, a second emotional tendency and a third emotional tendency; the first emotional tendency represents a positive emotional tendency, the second emotional tendency represents a neutral emotional tendency, and the third emotional tendency represents a negative emotional tendency.
7. A wearable device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to claim 4 are implemented.
8. A terminal device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Instant translation system based on professional language
CN110941965A
Translation method based on TWS Bluetooth headset, mobile terminal, TWS Bluetooth headset and storage medium
CN111314814A
Simultaneous interpretation translation system and simultaneous interpretation translation terminal
CN116933806A
Headset-based translation system
US20180260388A1
