[PYTHON] [Say] box and [Animated Say] box in Choregraphe 2.5.5.5

New Say / Animated Say box

In Choregraphe 2.5.5.5, the setting method of utterances (words) in the [Say] box and [Animated Say] box has changed. Choregraphe 2.5.5.5 Click the [Spanner] button in the [Say] or [Animated Say] box, and enter the text you want to speak in the [Text] variable in the box. fig1.png ↓ Click the [Spanner] button fig2.png Translation Workflow In 2.5.5.5, Translation Workflow was introduced in NAOqi, and it became possible to centrally support multiple languages of the application. It is no longer necessary to set translation settings for the [Say] or [Animated Say] boxes included in the Robo app one by one. Reference: http://doc.aldebaran.com/2-5/software/choregraphe/objects/translations.html

How to use

The setting flow is as follows.

Choregraphe operation

  1. Create an [Say] or [Animated Say] box and set the dialogue.
  2. Click the [Properties] button in the [Project File] panel. (The [Project Properties] screen opens.)
  3. In the [Project Properties] screen, select the language you want to add in [Language supported by RoboApp]. fig3.png
  4. Click the [OK] button.
  5. Click the menu [File]-[Localize App]. (Qt Linguist will start.)

Operation of Qt Linguist

  1. In the Qt Linguist Context panel, select the box you want to translate. fig4.png
  2. In the String panel-Source Text list, select the box variable you want to translate.
  3. Enter the translated text in the main panel. fig5.png
  4. Click the menu [File]-[Save All].
  5. Exit Qt Linguist.

By making the above settings, the text set for each execution language will be reflected and Pepepr will speak.

Need for upgrade

Similarly with Choregraphe 2.5.5.5, apps that include the traditional Say or Animated Say boxes can be edited and work. There is no need to force the box to be replaced. However, the [Say] or [Animated Say] box created in Choregraphe 2.5.5.5 cannot be edited or operated normally in Choregraphe / NAOqi 2.4.3.28. The correspondence is as follows.

NAOqi 2.5.5.5 NAOqi 2.4.3.28
Conventional [Say/Animated Say box
New [Say/Animated Say box ×

If your app is premised on multilingualization, please consider changing to a box with new specifications.

translations folder

Where is the information set by Qt Linguist stored? Unlike the 2.4.3.28 project, 2.5.5.5 creates a new folder "translations", and a setting information file for each language is created in this folder. Since the content is an xml file, it can be edited as a text file, but ** editing using Qt Linguist is recommended **.

Recommended Posts

[Say] box and [Animated Say] box in Choregraphe 2.5.5.5
Clipping and normalization in TensorFlow
Stack and Queue in Python
Gacha written in Python -BOX gacha-
Easy password box in Python
Unittest and CI in Python