TTS to talk in two languages

I need to let a speaker talk in English and German.

How can I use Piper or Pico to accept e.g. a language parameter?