Larynx TTS Concerns (With Raspberry Pi)

I am seeing that Larynx has excellent models in Spanish and English (I am going to use both languages).

I have 2 questions:

  1. Is there an example of how to program it in Python? I mean, something like this, but for Larynx. That is, if data[“intent”][“name”] == my intent, then play X audio with Larynx TTS.

  2. I have to test it on Raspberry Pi 4, but if you have tried it, is it smooth? Do you know the performance?

Greetings.