CROSS-REFERENCE TO THE RELATED APPLICATION(S)

This application is based on and claims priority under 35 U.S.C. § 119 to Chinese Patent Application No. 201910906754.6, filed on Sep. 24, 2019, and Chinese Patent Application No. 201910400084.0, filed on May 14, 2019, in the State Intellectual Property Office of P.R. China, the disclosures of which are incorporated by reference herein in its entirety.

BACKGROUND

1. Field

The disclosure relates to a field of computer technology, and particularly relates to a method, an apparatus, an electronic device, and a computer readable storage medium for translating voice.

2. Description of Related Art

Voice translation technology includes a technology for translating a voice of one language into a text of another language. As a result of the advent of an era of information internationalization and various social requirements, voice translation has played an important role in communication between people who speak different languages, and attention on researches in the voice translation technology has increased. Although there are various different solutions for implementing voice translation, the accuracy and speed of voice translation still needs to be improved.

SUMMARY

Example embodiments provide a method, an apparatus, an electronic device, and a computer readable storage medium for translating voice.

According to an aspect of an embodiment, there is provided a method for voice translation which may include: receiving a voice signal of a first language; obtaining a plurality of voice segments forming the voice signal; determining integrity of a first voice segment with respect to a second voice segment based on a voice feature of the first voice segment and a voice feature of the second voice segment; obtaining an output voice segment based on the integrity of the first voice segment with respect to the second voice segment; and outputting a text in a second language corresponding to the voice signal of the first language based on the output voice segment.

According to an aspect of an embodiment, there is provided an apparatus for voice translation which may include: a memory storing instructions; and at least one processor configured to, based on the instructions, to: receive a voice signal of a first language; obtain a plurality of voice segments forming the voice signal; determine integrity of a first voice segment with respect to the second voice segment based on a voice feature of the first voice segment and a voice feature of the second voice segment; obtain an output voice segment based on the integrity of the first voice segment with respect to the second voice segment; and output a text in a second language corresponding to the voice signal of the first language based on the output voice segment.

Additional aspects will be set forth in part in the description which follows and, in part, will be apparent from the description, or may be learned by practice of the presented embodiments.

According to an embodiment, the accuracy of the voice translation may improve. According to an embodiment, the speed of the voice translation may improve.

In accordance with an aspect of the disclosure, there is provided a computer program product includes a non-transitory computer readable recording medium having stored therein a program for performing the above method.

