Skip to content

adds Whisper support (adds Sppeech to text) - #10612

Merged
Bod9001 merged 4 commits into
unitystation:developfrom
Bod9001:Whhisper-suppport-add
Nov 16, 2024
Merged

adds Whisper support (adds Sppeech to text)#10612
Bod9001 merged 4 commits into
unitystation:developfrom
Bod9001:Whhisper-suppport-add

Conversation

@Bod9001

@Bod9001 Bod9001 commented Nov 15, 2024

Copy link
Copy Markdown
Member

Notes:

model distribution needs to be worked out still, since it needs to be cashed somewhere, worst-case Scenario we bundle it as part of the game
https://huggingface.co/ggerganov/whisper.cpp/blob/main/ggml-tiny.bin
official link

currently looks in UnityProject\Assets\StreamingAssets\Whisper

Changelog:

CL: [New] Adds locally run Speech to text system (Whisper)
CL: [New] by pressing M (and waiting for the hub dialogue) you can now use speech to text in game
CL: [New] using speech to text while chat is not selected it will automatically post in chat when you finish by pressing M
CL: [New] using speech to text while chat is selected it will automatically populate the text field when finished

@github-actions github-actions Bot added the UI label Nov 15, 2024
@Bod9001 Bod9001 changed the title Whhisper suppport add (adds Sppeech to text) adds Whisper support (adds Sppeech to text) Nov 15, 2024
Comment thread UnityProject/Assets/Scripts/Core/Chat/ChatUI.cs
Comment thread UnityProject/Assets/Scripts/Core/Chat/ChatUI.cs Outdated
{
if (UIManager.IsInputFocus) return;
Showing = false;
STTImageText.color = Color.white;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of this seems like it should be managed by its own component, and not be a part of the chat UI, since it is not its responsibility.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well the chat you're has its own button to toggle the SST since you can't press m

@MaxIsJoe MaxIsJoe Nov 16, 2024

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and you can't have a component that references the button because?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't thhis what I'm saying with each UI element should have its own script attached?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was quicker to do through the chatUI

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also resetting when the caht UI closes

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this button is for the chat you only it only shows when you open the cchat

Comment thread UnityProject/Assets/Scripts/whisper/WhisperMicrophoneHandler.cs
@Bod9001
Bod9001 merged commit f1d8057 into unitystation:develop Nov 16, 2024
@Bod9001
Bod9001 deleted the Whhisper-suppport-add branch April 17, 2025 16:55
@corp-0 corp-0 added the blog post! PRs that will be mentioned in next blog post label Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blog post! PRs that will be mentioned in next blog post UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants