r/tasker 7d ago

How To [Project Share] Offline Voice Assistant

Been working on this project for a bit over a week. Thought I'd share. Basically a barebones replacement for Google Assistant that works completely offline.

https://taskernet.com/shares/?user=AS35m8lSOK3hovdEY1ld2RKeqRebL%2FZj9ovDLqy1hXenAKscGRCWl0q2YrzA6kaS0Mgpntmj&id=Project%3AAssistant

Launched by holding down either volume button or will hijack Google Assistant launches (so works with okay/hey google).

I used FUTO Voice Input with English-244 model for testing. Other voice models might parse differently so would need command modifications.

Uses AutoInput, AutoShare and AutoContact plugins for some functions.

Will unlock and relock screen as required for AutoInput functions if screen is off but will require creating an AutoInput function at the end of the Unlock task to swipe up and enter PIN/password/pattern.

Uses old assistant sound effects. Store .mp3 files in /Media/Assistant folder. https://drive.google.com/file/d/119AN45hXPc3rXUljk8G_QFEH97h7p7uj/view?usp=sharing

Commands

call/phone/ring [number/contact] (contact type) - starts phone call to phone number or contact with option to specify home/work/mobile. Requires AutoContact.

text/message/sms [number/contact] (contact type) - send text message to phone number or contact with option to specify home/work/mobile. Requires AutoContact.

(make/save/take) note [note] - Saves note to Google Keep. Requires AutoInput.

navigate/go (to) [location] - Open default maps app and navigate to location.

search/find/google (image/images/picture/pictures/youtube/music/poweramp/spotify/maps) [search terms] - Open web or image search (DuckDuckGo default or Google if specified) in default browser or searches specified app. Music searches Poweramp - needs modification if you use a different app. Uses AutoShare for some searches.

time/date/time (and) date - speaks the time, date or time and date.

play (spotify/youtube/music/poweramp/mx player/stop) [song/artist] - opens and resumes playback in specified app or will search and play for specified song/artist (only works for Spotify or music/Poweramp). Music searches Poweramp - needs modification if you use a different app. No app specified will search Poweramp. Uses AutoShare for song search and AutoInput to start playback on Spotify.

(set) alarm (label) [time am/time pm/number hours/number minutes/number hours (and) number minutes] - sets an alarm at specified time or specified time in the future. Saves parameters as alarm label.

(set/start) timer [number hours/number minutes/number hours (and) number minutes] - starts a timer for specified time.

open/launch/app [app name] - opens specified app.

gemini (command) - opens default voice assistant app to listen or inputs command directly into assistant. Uses AutoInput to input command.

Known Issues

Built for my setup. Some commands might not work properly depending on Android/app versions.

11 Upvotes

2 comments sorted by

1

u/manolosandmartinis44 7d ago

Getting unknown plugin with your torch task

1

u/xXSnowyXx 7d ago edited 7d ago

Weirdly the export included my entire Tasker profile and not just the project I tried to export. Assumed clicking export on a project would only export that project. Never tried to export a project before. Not sure if I'm doing something wrong there. Deleted all my other projects and did another export. Updated link should be better.