Bug Fix - Language Translation Logic in Web Application

Job ID: 37618816

Budget: $10 – $30 USD

We are currently facing an issue in our web application where a bug in the logic is causing unintended behavior in the language translation functionality. Our application allows users to translate text into various languages and utilize a speech function for audio output.

Problem Description:

All languages should be available for both the original and destination texts.
If the original and destination languages are the same, the translation function should be bypassed, and the input should directly go to the speech function.
However, the current implementation is causing an error where the translator attempts to translate a text from Japanese to Japanese, resulting in nonsensical output.
And also implement a feature that allows users to include a voiceId parameter in the URL
Related categories: PHP JavaScript Node.js