robotemi/sdk

TtsRequest CA_ES doesn't speak in catalan

acivit opened this issue · 1 comments

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..

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.