Skip to content

TaskWiz Speaks

Eliran Wong edited this page Nov 23, 2023 · 1 revision

TaskWiz Speaks

Users can use voice typing to talk to TaskWiz AI.

TaskWiz AI can speak to response.

Video Demonstration

Watch the video

Requirements

On Windows / macOS / Linux

pip3 istall gTTS google-cloud-texttospeech pygame

On Termux (Android)

pip3 istall gTTS google-cloud-texttospeech

Install VLC player

VLC player is required on Termux (Android) and optional on Windows / macOS / Linux, as pygame is used audio playing but pygame is not available on Termux.

With VLC player, you can control speaking rate via setting 'vlcSpeed' in config.py

To install on Termux (Android), run:

pkg install which vlc

For other platforms, read https://www.videolan.org/vlc/

Input and Response Audio

response_audio

Response Audio

TaskWiz AI can speak as chat responses are streamed. To enable / disable this feature, go to action menu and select "toggle response audio".

Input Audio

TaskWiz AI can speak as you enter your input. To enable / disable this feature, go to action menu and select "toggle input audio".

Text-to-Speech Engine

You can choose a text-to-speech engine for the audio features.

TaskWiz AI uses gTTS by default for text-to-speech engine.

There are two other options:

  1. Official Google Cloud Text-to-speech, which offers more language support and allows speed control.

  2. Customised text-to-speech command, which supports offline text-to-speech engine that may run faster than the cloud-based ones.

Setup of official Google Cloud Text-to-speech

  1. Create a credential key for Google Cloud text-to-speech service and download it. Read for details at https://cloud.google.com/text-to-speech/docs/before-you-begin

  2. Rename the credential key file to "credentials_GoogleCloudTextToSpeech.json"

  3. Place the credential key file "credentials_GoogleCloudTextToSpeech.json" in 'TaskWiz AI' folder.

Setup of Customised Text-to-speech Command

  1. Press 'Enter' to enter a blank entry.

  2. Select 'Configure text-to-speech command' from the opened action menu.

  3. Enter a command of your own choice

  4. Enter a command suffix (optional, leave it blank if not applicable)

For examples:

  • on macOS ['say -v "?"' to check voices]:
    Simply enter:

say

To specify voice and speaking rate, eg.:

say -v Daniel -r 200
[leave suffix command 'blank']

  • on Ubuntu ['espeak --voices' to check voices]:
    Simply enter:

espeak

To specify voice and speaking rate, eg.:

espeak -v en-gb -s 175
[leave suffix command 'blank']

  • on Windows, try:
    Command:

Add-Type -TypeDefinition 'using System.Speech.Synthesis; class TTS { static void Main(string[] args) { using (SpeechSynthesizer synth = new SpeechSynthesizer()) { synth.Speak(args[0]); } } }'; [TTS]::Main(

Suffix:

)

Notes:

  • default tts engine is used when both google-cloud tts engine or customised tts command is blank.

  • google-cloud tts engine is used if 'credentials_GoogleCloudTextToSpeech.json' is in place and tts command is blank.

  • customised tts command is used if it is set up and 'credentials_GoogleCloudTextToSpeech.json' does not exist.

  • google-cloud tts is used if google-cloud tts engine and customised tts command are set up

Speak to TaskWiz AI

You can speak to TaskWiz AI via voice typing:

How to use voice typing on Windows?

Ah, I see you're interested in voice typing on Windows. Windows also has a built-in feature that allows you to use voice recognition for typing. Let me guide you through the process:

  1. Open the "Settings" application on your Windows system. You can do this by pressing the Windows key and typing "Settings" in the search bar.

  2. In the Settings window, click on the "Ease of Access" category.

  3. On the left side of the Ease of Access settings, you'll find an option called "Speech." Click on it.

  4. In the Speech settings, scroll down until you find the section called "Dictate text and control your device." Make sure the toggle switch for "Speech recognition" is turned ON.

  5. Once you've enabled speech recognition, you can start voice typing in any text field by pressing the Windows key + H. This will activate the speech recognition feature, and you can start speaking to dictate your text.

Windows also provides a list of voice commands that you can use to navigate your computer and perform various tasks. You can access this list by clicking on the "Learn how to use dictation and other voice commands" link in the Speech settings.

How can I use voice typing on macOS?

On macOS, voice typing is known as dictation. It allows you to speak instead of typing and have your words converted into text. To use dictation on macOS, follow these steps:

  1. Open System Preferences by clicking on the Apple menu in the top-left corner of the screen and selecting "System Preferences."

  2. In System Preferences, click on the "Keyboard" icon.

  3. In the Keyboard settings, navigate to the "Dictation" tab.

  4. In the Dictation tab, make sure that "Dictation" is enabled. You can choose to enable it either for "Enhanced Dictation" or "Standard Dictation." Enhanced Dictation allows you to use dictation offline, while Standard Dictation requires an internet connection but takes up less storage space.

  5. Once you have enabled dictation, you can choose a keyboard shortcut to activate it. By default, you can press the fn (function) key twice to start dictation. However, you can change this shortcut to your preference.

  6. Now, whenever you want to use voice typing, simply activate dictation using the keyboard shortcut you set. A small microphone icon will appear on the screen indicating that dictation is active.

  7. Start speaking, and macOS will convert your speech into text in real-time. You can dictate entire paragraphs or dictate specific commands, such as punctuation or formatting.

Dictation on macOS supports various languages, so make sure you have selected the desired language in the Dictation settings.

How can I use voice typing on Ubuntu?

To enable voice typing on Ubuntu, you'll need to follow these steps:

  1. Open the "Settings" application on your Ubuntu system. You can usually find it in the launcher or by searching for it in the overview.

  2. In the Settings window, look for the "Universal Access" category and click on it.

  3. In the Universal Access settings, you should see an option called "Typing Assistive Technologies." Click on it to open the typing settings.

  4. In the typing settings, you'll find an option called "Enable Screen Keyboard." Make sure this option is turned ON.

  5. Once you have enabled the screen keyboard, you can click on the microphone icon on the keyboard to start voice typing.

Installation

Installation
Installation on Android
Install a Supported Python Version
Install ffmpeg
Android Support
Install LetMeDoIt AI on Android Termux App Automatic Upgrade Option

Video Demonstration

Video Demo

Basics

Quick Guide
Action Menu
ChatGPT API Key
Use GPT4 Models
Google API Setup
ElevenLabs API Setup
OpenWeatherMap API Setup
Run Local LLM Offline
Token Management
Command Line Interface Options
Command Execution
Chat-only Features
Developer Mode
Save Chart Content Locally
Work with Text Selection
Work with File Selection
System Tray
Custom Key Bindings

Selective Features

Examples
Features
Change Assistant Name
Setup Multiple LetMeDoIt Assistants
Memory Capabilities
Data Visualization
Analyze Files
Analyze Images
Analyze Audio
Google and Outlook Calendars
Python Code Auto‐heal Feature
Integration with AutoGen
Integration with Google AI Tools
Integration with Open Interpreter
Speak to LetMeDoIt AI
LetMeDoIt Speaks
Speak multi‐dialects
Create a map anytime
Modify your images with simple words
Work with Database Files
Create a Team of AI Assistants
Search and Load Chat Records
Search Weather Information
Search Financial Data
Social Media

Plugins

Plugins ‐ Overview
Plugins - How to Write a Custom Plugin
Plugins ‐ Add Aliases
Plugins ‐ Input Suggestions
Plugins ‐ Install Additional Packages
Plugins ‐ Predefined Contexts
Plugins ‐ Transform Text Output
Plugins ‐ Work with LetMeDoIt AI Configurations
Plugins ‐ Function Calling
Plugins ‐ Run Codes with Specific Packages
Plugins ‐ Work with Non‐conversational Model
Plugins ‐ Integrate Text‐to‐speech Feature
Plugins ‐ Integrate Other Shared Utilities

Comparison

Compare with ChatGPT
Compare with Siri and Others

Clone this wiki locally