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

Feature request: Intent and/or keyboard shortcut (Ctrl +c?) to copy text from SttServiceActivity #212

Open
sudomain opened this issue Mar 23, 2024 · 0 comments
Labels
enhancement New feature or request tts&stt Speech-to-text and text-to-speech requests or bugs, including Vosk

Comments

@sudomain
Copy link

sudomain commented Mar 23, 2024

EDIT (a few days later): On second thought, maybe an option to automatically copy to the clipboard once the speaking is done would be more maintainable?

Hello,

A keyboard shortcut or intent to copy the text in SttServiceActivity would be very useful to me. I would use it programmatically to get text into Termux using SttServiceActivity. Something along the lines of:

#!/bin/bash

# Start dicio STT
am start -n org.stypox.dicio/.input.stt_service.SttServiceActivity

# Intent to copy STT text here. alternatively an intent can be sent through Key Mapper to trigger the keyboard shortcut

# Make sure Termux is in foreground so that termux-get-clipboard works
am start -n com.termux/com.termux.app.TermuxActivity

# Get clipboard content
response=$(termux-clipboard-get)

if [[ $response == *"some value"* ]]; then

...

Incidentally this pattern could be used to extend the set of Dicio skills using tools in Termux, Termux:API, and intent recieving apps via Termux's version of am

@Stypox Stypox added enhancement New feature or request tts&stt Speech-to-text and text-to-speech requests or bugs, including Vosk labels Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request tts&stt Speech-to-text and text-to-speech requests or bugs, including Vosk
Projects
None yet
Development

No branches or pull requests

2 participants