Voice + calendar tools

Speech tools and Google Calendar integration.

#Voice (TTS / STT)

tota supports multiple TTS and STT providers. Configure the default with tota setup voice.

TTS providers — set voice.ttsProvider in tota.yaml or the provider param per call:

ProviderKey requiredNotes
openai (default)OPENAI_API_KEYTTS-1 model, 6 voices
elevenlabsELEVENLABS_API_KEYeleven_multilingual_v2 model
googleGOOGLE_TTS_API_KEYCloud TTS, Journey-F voice

STT providers — set voice.sttProvider in tota.yaml or the provider param per call:

ProviderKey requiredNotes
openai (default)OPENAI_API_KEYWhisper-1
groqGROQ_API_KEYWhisper-large-v3, fast inference

Telegram voice messages are automatically transcribed using whichever STT provider is configured.

ToolDescription
text_to_speechConvert text to speech and save as an MP3. Params: text, voice?, provider? (openai|elevenlabs|google), send?
transcribe_audioTranscribe a local audio file. Params: path, language?, provider? (openai|groq)
Read this aloud using ElevenLabs
> text_to_speech text="Meeting starts in 5 minutes" provider=elevenlabs

Transcribe with Groq (faster)
> transcribe_audio path=/tmp/recording.ogg provider=groq

Supported OpenAI TTS voices: alloy, echo, fable, onyx, nova, shimmer.

Run tota setup voice to configure providers interactively.

#Google Calendar

Requires a Google Cloud OAuth2 app. Set GOOGLE_CALENDAR_CLIENT_ID and GOOGLE_CALENDAR_CLIENT_SECRET (or add them to ~/.tota/tota.yaml under calendar:).

ToolDescription
calendar_authManual OAuth2 fallback — only needed in headless environments
list_eventsList upcoming calendar events
create_eventCreate a calendar event
check_availabilityCheck free/busy availability for a time range
delete_eventDelete an event by ID

First-time setup (one-time, automatic):

  1. In Google Cloud Console → Credentials → your OAuth Client ID, add this to Authorized redirect URIs:
    http://localhost:8765/oauth2callback
    
  2. Run tota setup calendar and enter your Client ID and Secret.
  3. The first time you use a calendar tool, tota opens your browser automatically → click Allow → done. No code copying.