robotemi / sdk

temi is an unparalleled robotic platform introducing a new dimension of development - movement. Using temi’s SDK, developers can create new functionalities and introduce new use cases via temi’s Android tablet. temi’s movement and navigation capabilities run off of it's Linux computer and uses a set of 16 sensors including a Lidar, depth cameras, driving cameras, and microphones. We encourage our developer community to suggest and request expanded functionality within the SDK and we will adhere to your needs. We want to enable you to create skills like never seen before! We will be constantly improving the SDK and its documentation. Please feel free to reach out to us with any questions or thoughts at developers@robotemi.com
https://www.robotemi.com/
205 stars 87 forks source link

TtsRequest CA_ES doesn't speak in catalan #428

Open acivit opened 10 months ago

acivit commented 10 months ago

Hello,

I want Temi to talk in catalan for my project, until now I used the SDK "'com.robotemi:sdk:0.10.65'", which has not catalan implemented in their languages, so I used Microsoft speech synthesis library.

I saw that you have implemented catalan for temi, so I wanted to check if it worked properly, but when executing the speaking its pronunciation is in English. I'm using: "'com.robotemi:sdk:1.131.4'"

This is a wrap of code using this:

import com.robotemi.sdk.Robot;
import com.robotemi.sdk.TtsRequest;

public class RobotApi implements TtsListener,
                                 AsrListener,
                                 OnGoToLocationStatusChangedListener{
    private final Robot robot;
    public TemiWebsocketServer server;
    String speak_id;

public String speak(String sentence, String id) throws ExecutionException, InterruptedException {
        //TtsRequest.Language language = TtsRequest.Language.CA_ES; (I have used both)
        TtsRequest.Language language = TtsRequest.Language.valueToEnum(22);

        TtsRequest request = TtsRequest.create(sentence, false, language);
        robot.speak(request);

        return "ok";

I'm using Temi v2. Android 6.0, minSdkVersion 23, targetSdkVersion 29. Robox OS 128.12, Launcher OS 16402.

Any idea why this must happen? Thanks!

PD: Catalan does not appear in settings -> language..

zjn0505 commented 10 months ago

https://github.com/robotemi/sdk/wiki/Release-Info#version-11302

Catalan as a system and TTS language will require temi V3, it is added in 130 version.