Displays a dialog window with speech widget

Usage #

Let’s create a speech dialog that captures voice input from the user.

package main

import (
    "fmt"
    "github.com/hugmouse/gotermux"
)

func main() {
    result := gotermux.TermuxDialogSpeech(
        gotermux.TDialogSpeech{
            gotermux.TDialogConfirm{
                Hint:  "Say something...",
                Title: "Voice Input",
            }
    })
    fmt.Printf("%+v", result)
}

Termux API reference #