croeer / cookiput

Create custom cookidoo recipes via API call
MIT License
4 stars 0 forks source link

Instruction Types #1

Open fboie opened 8 months ago

fboie commented 8 months ago

Moin,

thanks for your work!

I wonder if other instruction types or step parameters exist? It would be nice to also create the instructions for the machine like

Danke und Gruß, Markus

croeer commented 5 months ago

Moin Markus,

yes that is possible.

If you add steps to the recipe they support annotations like this:

{
  "type": "STEP",
  "text": "New Step using blender for 5 Sek./Stufe 8.5",
  "annotations": [
    {
      "type": "TTS",
      "data": { "speed": "8.5", "time": 5 },
      "position": { "offset": 27, "length": 16 }
    }
  ]
}

The position member seems to encode the labels position in the text, which will be highlighted. I'll try to further explore the mechanism and update the docs in this repository.

VG Christian

fboie commented 2 months ago

Moin Christian,

very cool, thank you.

VG Markus