adrianlyjak / obsidian-aloud-tts

MIT License
12 stars 1 forks source link

[FR] - The ability to be able to permanently mark a piece of text (by wrapping in a callout or similar) #27

Open spiritualgeek opened 1 month ago

spiritualgeek commented 1 month ago

Hi,

I am uncertain if this is an unusual request. However, I would greatly appreciate the functionality to permanently mark a portion of text, which would subsequently generate a small audio icon alongside it, enabling playback.

Whether this could be done in a callout or as part of an embedded code snippet would be up to you (There may be better ways apart from what I illustrate below)

e.g.

> [!tts|1.2 voice]
> Text to play back

or

```tts
playbackspeed: 1.2
voice: xxx

Text to play back


Thanks
adrianlyjak commented 1 month ago

@spiritualgeek , I like the concept! I've seen other plugins use the code fences with the plugin identifier to good effect, toggling between some-sort of widget mode when not directly editing the section.

It's certainly a bigger undertaking, but it seems like it would fit well into the existing architecture.

Another thought might be to just read from a "context" while playing the audio. I could see that being useful for marking up dialog, and pressing play on that and having the player automatically switch voices.

```tts
voice: A
---
Hello! I am Alice
voice: B
---
Hi Alice, I'm Bob!


Unfortunately it gets a bit verbose in the dialog case with the code block
spiritualgeek commented 1 month ago

Precisly this. I'm waiting with bated breath 😄