MP speech on Ubuntu: nothing heard

No MP speech on Ubuntu version.

On MP messages terminal appears:

INFO MissionPlanner.Utilities.Speech - TTS: say Pre Arm: Throttle below Failsafe
INFO MissionPlanner.MAVLinkInterface - 25/01/2022 18:21:57 2 PreArm: Hardware safety switch
INFO MissionPlanner.CurrentState - messageHigh PreArm: Hardware safety switch
INFO MissionPlanner.Utilities.Speech - TTS: say Pre Arm: Hardware safety switch
INFO MissionPlanner.MAVLinkInterface - 25/01/2022 18:21:57 2 PreArm: Bad GPS Position
INFO MissionPlanner.CurrentState - messageHigh PreArm: Bad GPS Position
INFO MissionPlanner.Utilities.Speech - TTS: say Pre Arm: Bad GPS Position
INFO MissionPlanner.MAVLinkInterface - 25/01/2022 18:21:57 2 PreArm: Proximity 180 deg, 0.33m (want > 0.6m)
INFO MissionPlanner.CurrentState - messageHigh PreArm: Proximity 180 deg, 0.33m (want > 0.6m)
INFO MissionPlanner.Utilities.Speech - TTS: say Pre Arm: Proximity 180 deg, 0.33 meters (want > 0.6 meters)

Nothing is heard.

festival works, as shown with:
$ echo Hola|festival --tts --language spanish

Anything else needed? What can I try?

I think MP speech is tied to whatever Windows uses for Text to Speech - so it may not work on Ubuntu. I vaguely remember seeing this somewhere, but I could be mistaken.

@Michael_Oborne Should know specifics.

Certainly, in Windows version the TTS: say messages are similar. But here on the installation script:
# Install new packages
PACKAGES=“apt-transport-https
dirmngr gnupg ca-certificates
festival”

So if festival is required, it is for speech, but if it should work now is a mistery.

As a simple test, I renamed festival:

INFO MissionPlanner.MAVLinkInterface - 25/01/2022 22:24:06 2 PreArm: Throttle below Failsafe
INFO MissionPlanner.CurrentState - messageHigh PreArm: Throttle below Failsafe
INFO MissionPlanner.Utilities.Speech - TTS: say Pre Arm: Throttle below Failsafe
INFO MissionPlanner.MAVLinkInterface - 25/01/2022 22:24:06 2 PreArm: Hardware safety switch
INFO MissionPlanner.CurrentState - messageHigh PreArm: Hardware safety switch
INFO MissionPlanner.Utilities.Speech - TTS: say Pre Arm: Hardware safety switch

Of course, no sound as before, but no error is indicated, so who knows…

what happens if you
run festival
then type
(SayText “test”)
(quit)

It works also:

(BTW, as seen, festival doesn’t work well with spanish special characters).

Here is a capture of an area containing both QGC and MP in Ubuntu connected to the same SITL session on other computer (MacOS), captured with sound:

Mode is repeatedly changed from MP (mode changes seen on both). QGC sound is heard, but nothing from MP (it has speech enabled with UI Language English (United States)).

MP Ubuntu 1.3.76 build 1.3.8029.15962.

can you run from cmd line, and check what this line says
TTS: init, mono

On __Mission Planner__MissionPlanner.log:
2022-02-19 10:16:22,822 INFO MissionPlanner.Utilities.Speech - TTS: init, mono = True (:0) [Base Thread]
2022-02-19 10:16:22,857 INFO MissionPlanner.MainV2 - change lang to en-US current es-ES (:0) [Base Thread]

Some mode change lines on other logs:
2022-02-18 13:06:15,183 INFO MissionPlanner.Utilities.Speech - TTS: say Mode changed to Stabilize (:0) [Thread Pool Worker]
2022-02-18 13:06:19,478 INFO MissionPlanner.Utilities.Speech - TTS: say Mode changed to Acro (:0) [Thread Pool Worker]
2022-02-18 13:06:23,798 INFO MissionPlanner.Utilities.Speech - TTS: say Mode changed to AltHold (:0) [Thread Pool Worker]
2022-02-18 13:06:31,023 INFO MissionPlanner.Utilities.Speech - TTS: say Mode changed to Stabilize (:0) [Thread Pool Worker]
2022-02-18 13:06:36,193 INFO MissionPlanner.Utilities.Speech - TTS: say Mode changed to AltHold (:0) [Thread Pool Worker]
2022-02-18 13:06:40,314 INFO MissionPlanner.Utilities.Speech - TTS: say Mode changed to Auto (:0) [Thread Pool Worker]
2022-02-18 13:06:45,238 INFO MissionPlanner.Utilities.Speech - TTS: say Mode changed to Guided (:0) [Thread Pool Worker]

Same: capture of an area containing both QGC and MP in Windows 10 connected to the same SITL session on other computer (MacOS), captured with sound:

Mode is repeatedly changed from MP (mode changes seen on both). QGC voice is heard in english, and MP in spanish (it has speech enabled with UI Language Español (España)).

please try the latest beta on ubuntu, i think its resolved

On version Ubuntu 1.3.76 build 1.3.8029.15962, pressing button Help – Check for BETA Updates I get 403:
MP_403

On terminal:
INFO MissionPlanner.Utilities.Update - get checksums https://ci.appveyor.com/api/projects/meee1/missionplanner/artifacts/checksums.txt?tag=beta - base https://ci.appveyor.com/api/projects/meee1/missionplanner/artifacts/MissionPlannerBeta.zip?tag=beta
ERROR MissionPlanner.Utilities.Update - Update Failed
System.Net.Http.HttpRequestException: Response status code does not indicate success: 403 (Forbidden).

Downloading from GitHub:
https://github.com/ArduPilot/MissionPlanner/archive/refs/heads/master.zip
and writing over no success (unzipping MissionPlanner.exe is not found).

How can I upgrade from build 1.3.8029.15962, or execute with GitHub files?

No success trying to change beta upgrade towards GitHub copying related lines from Windows MissionPlanner.exe.config.

Finally I copied all Windows Mission Planner directory to a pendrive and executed from it:
mono MissionPlanner.exe.

Version showed was 1.3.76 build 1.3.8085.41430. Speech was heard at last! Here is a .tlog file being reproduced:

However, here MP has speech enabled with UI Language Español (España)), but the accent is english, so it is hardly understood (with a SITL connection the same happens (also english accent with spanish UI)).

Also, it seems that .tlog delay is hardly noticeable, but more testing is required.

Speech also in MacOS version, as in Android?

For more tests, it is convenient that version in
https://firmware.ardupilot.org/Tools/MissionPlanner/MissionPlanner-latest.zip
be upgradable, or clear instructions downloading from GitHub.

https://firmware.ardupilot.org/Tools/MissionPlanner/MissionPlanner-latest.zip”

is for stable version

for beta, check github releases

Yes, version shown in Ubuntu is:
1.3.76 build 1.3.76 build 8029.15962
but trying to upgrade (HELP → button Check for BETA Updates) appears 403:


There are references to appveyor in several xx.config files, which I wonder if it is correct.

Thanks. Here:
https://github.com/ArduPilot/MissionPlanner/releases/download/betarelease/MissionPlannerBeta.zip
unzipping and executing it in Ubuntu with:
mono MissionPlanner.exe
shows version
1.3.76 build 1.3.76 build 8085.41430
and speech works.

However, trying to upgrade it (HELP → button Check for BETA Updates), many files are downloaded, but it doesn’t finish:


When interrupting it with ^c, there are may files named xx.new (which seem to be unchanged from previous ones).
Also, there are references to appveyor in several xx.config unzipped files, which I wonder if it is correct.

Same test as above:

with speech from both QGC and MP:

  • QGC: EN.
  • MP: ES.

Here part of a mission:

where: