Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support narration through the Chat Box #74

Open
djmattyg007 opened this issue Apr 14, 2024 · 9 comments
Open

Support narration through the Chat Box #74

djmattyg007 opened this issue Apr 14, 2024 · 9 comments
Labels
Milestone

Comments

@djmattyg007
Copy link

Describe your idea

The Supplementaries mod has a "speaker" that lets you broadcast a message on a redstone pulse. This message can be broadcast as a chat message, a status message, a title message, or a narration. It would be nice if the Advanced Peripherals chatbox could also support narration, so that we can dynamically create narrated messages.

Describe alternatives you've considered if you've any

I don't know of a good way to dynamically program the Supplementaries speaker box

Additional context

No response

Linked Issues

No response

@zyxkad
Copy link
Collaborator

zyxkad commented Apr 14, 2024

What narration? Isn't narration automatically triggered when client enabled?

@zyxkad
Copy link
Collaborator

zyxkad commented Apr 14, 2024

Don't get your idea, can you explain more?

@zyxkad
Copy link
Collaborator

zyxkad commented Apr 14, 2024

If you just want sound, CC:T has a speaker. If you want broadcast narration, narration should be played when client enabled chat narration and you send a chat message.

@djmattyg007
Copy link
Author

I'm not trying to play random sounds. I'd like the ability to do text-to-speech through the narration system, without explicitly having vanilla Minecraft narration enabled. The Supplementaries speaker box allows you to do this, but I'd like the ability to do it with Computercraft because it's more dynamic. It might be worth taking a look at the Supplementaries mod to understand more of what I mean.

@zyxkad
Copy link
Collaborator

zyxkad commented Apr 15, 2024

but I'd like the ability to do it with Computercraft because it's more dynamic.

You can absolutely play text sounds use computercraft speaker, someone made the script

@djmattyg007
Copy link
Author

Could you please provide some information on how to do it?

@djmattyg007
Copy link
Author

According to the documentation, there is no support for narration in the computercraft speaker: https://tweaked.cc/peripheral/speaker.html

So I'm very confused as to what you're referring to.

@Einhornyordle
Copy link
Member

Not built in, but CC has a fully working http API https://tweaked.cc/module/http.html
With that you can use pretty much every API the internet has to offer, from fetching the current weather to chatting with ChatGPT. Therefore, to realize what you're trying to do, just use a TTS API, send your text to it, fetch the response (the spoken audio) and play it via the speaker.

@SirEndii
Copy link
Member

I've added this request to the AP project, and I probably will add this feature to the next major version

@SirEndii SirEndii added this to the 0.8r milestone Aug 24, 2024
@SirEndii SirEndii modified the milestones: First 0.8r release, 0.8x Jan 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

4 participants