Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/jasperproject/jasper-client
/ functions
Functions
282 in github.com/jasperproject/jasper-client
⨍
Functions
282
◇
Types & classes
49
↓ 58 callers
Method
say
(self, phrase, OPTIONS=" -vdefault+m3 -p 40 -s 160 --stdout > say.wav")
client/mic.py:258
↓ 14 callers
Method
compile
Compiles this vocabulary. If the force argument is True, compilation will be forced regardless of necessity (which means that the
client/vocabcompiler.py:122
↓ 9 callers
Method
is_available
(cls)
client/tts.py:362
↓ 9 callers
Method
play
Plays the current song or accepts a song to play. Arguments: songs -- a list of song objects playlis
client/modules/MPDControl.py:259
↓ 8 callers
Method
parse
(self, fname, membername=None)
client/vocabcompiler.py:354
↓ 8 callers
Method
play
(self, filename)
client/tts.py:127
↓ 7 callers
Method
runConversation
Generic method for spoofing conversation. Arguments: query -- The initial input to the server. inputs -- Additional input, if
tests/test_modules.py:21
↓ 6 callers
Method
matches_phrases
Convenience method to check if this vocabulary exactly contains the phrases passed to this method. Arguments: ph
client/vocabcompiler.py:107
↓ 5 callers
Method
__init__
(self, language="en-US")
client/tts.py:357
↓ 5 callers
Method
activeListen
Records until a second of silence or times out after 12 seconds Returns the first matching string or None
client/mic.py:186
↓ 5 callers
Method
current_song
(self)
client/modules/MPDControl.py:282
↓ 5 callers
Method
translate
(self, words)
client/g2p.py:123
↓ 4 callers
Method
getScore
(self, data)
client/mic.py:42
↓ 4 callers
Method
get_config
(self, *args, **kwargs)
tests/test_vocabcompiler.py:121
↓ 4 callers
Method
get_instance
(cls, vocabulary_name, phrases)
client/stt.py:33
↓ 4 callers
Method
transcribe
(self, fp)
client/stt.py:484
↓ 4 callers
Method
translate
(self, *args, **kwargs)
tests/test_vocabcompiler.py:124
↓ 3 callers
Method
_emptyBrain
()
tests/test_brain.py:19
↓ 3 callers
Method
_makeurl
(self, path, query={})
client/tts.py:542
↓ 3 callers
Function
getTimezone
Returns the pytz timezone for a given profile. Arguments: profile -- contains information related to the user (e.g., email
client/app_utils.py:84
↓ 3 callers
Function
get_engines
()
client/tts.py:669
↓ 3 callers
Method
query
Passes user input to the appropriate module, testing it against each candidate module's isValid function. Arguments:
client/brain.py:59
↓ 3 callers
Function
simple_request
(var, cleanVar, cleanInput=None)
client/populate.py:18
↓ 2 callers
Method
_get_response
(self, data)
client/stt.py:525
↓ 2 callers
Method
_regenerate_request_url
(self)
client/stt.py:340
↓ 2 callers
Method
activeListenToAllOptions
Records until a second of silence or times out after 12 seconds Returns a list of the matching options or None
client/mic.py:197
↓ 2 callers
Function
check_executable
Checks if an executable exists in $PATH. Arguments: executable -- the name of the executable (e.g. "echo") Returns: Tru
client/diagnose.py:47
↓ 2 callers
Method
execute
(cls, fst_model, input, is_file=False, nbest=None)
client/g2p.py:19
↓ 2 callers
Function
getDate
(email)
client/modules/Gmail.py:27
↓ 2 callers
Method
getNotification
Returns a notification. Note that this function is consuming.
client/notifier.py:55
↓ 2 callers
Method
get_active_instance
(cls)
client/stt.py:51
↓ 2 callers
Method
get_config
(cls)
client/stt.py:454
↓ 2 callers
Function
get_forecast_by_wmo_id
(wmo_id)
client/modules/Weather.py:88
↓ 2 callers
Method
get_modules
Dynamically loads all the modules in the modules folder and sorts them by the PRIORITY key. If no PRIORITY is defined for a given
client/brain.py:28
↓ 2 callers
Method
get_passive_instance
(cls)
client/stt.py:46
↓ 2 callers
Method
get_voices
(cls)
client/tts.py:257
↓ 2 callers
Method
passiveListen
Listens for PERSONA in everyday sound. Times out after LISTEN_TIME, so needs to be restarted.
client/mic.py:89
↓ 2 callers
Method
phrases_to_revision
Calculates a revision from phrases by using the SHA1 hash function. Arguments: phrases -- a list of phrases Ret
client/vocabcompiler.py:41
↓ 2 callers
Method
play_mp3
(self, filename)
client/tts.py:96
↓ 2 callers
Method
run
(self)
jasper.py:112
↓ 2 callers
Method
stop
(self)
client/modules/MPDControl.py:304
↓ 2 callers
Method
volume
(self, level=None, interval=None)
client/modules/MPDControl.py:288
↓ 1 callers
Method
_compile_dictionary
Compiles the dictionary from a list of words. Arguments: words -- a list of all unique words this vocabulary contains
client/vocabcompiler.py:309
↓ 1 callers
Method
_compile_languagemodel
Compiles the languagemodel from a text. Arguments: text -- the text the languagemodel will be generated from
client/vocabcompiler.py:273
↓ 1 callers
Method
_compile_vocabulary
Abstract method that should be overridden in subclasses with custom compilation code. Arguments: phrases -- a li
client/vocabcompiler.py:177
↓ 1 callers
Method
_get_grammar
(self, phrases)
client/vocabcompiler.py:396
↓ 1 callers
Method
_get_word_defs
(self, lexicon, phrases)
client/vocabcompiler.py:400
↓ 1 callers
Method
_translate_word
(self, word)
client/g2p.py:107
↓ 1 callers
Method
_translate_words
(self, words)
client/g2p.py:110
↓ 1 callers
Method
activeListen
(self, THRESHOLD=None, LISTEN=True, MUSIC=False)
client/test_mic.py:24
↓ 1 callers
Method
activeListen
(self, THRESHOLD=None, LISTEN=True, MUSIC=False)
client/local_mic.py:23
↓ 1 callers
Function
check_network_connection
Checks if jasper can connect a network server. Arguments: server -- (optional) the server to connect with (Default:
client/diagnose.py:19
↓ 1 callers
Function
clean_number
(s)
client/populate.py:39
↓ 1 callers
Method
communicate
(self)
tests/test_g2p.py:44
↓ 1 callers
Method
delegateInput
(self, input)
client/modules/MPDControl.py:84
↓ 1 callers
Function
detectYears
(input)
client/alteration.py:5
↓ 1 callers
Method
do_in_tempdir
(self)
tests/test_vocabcompiler.py:43
↓ 1 callers
Function
extractOrdinals
(text)
client/modules/HN.py:64
↓ 1 callers
Function
extractOrdinals
(text)
client/modules/News.py:55
↓ 1 callers
Method
fetchThreshold
(self)
client/mic.py:47
↓ 1 callers
Function
fetchUnreadEmails
Fetches a list of unread email objects from a user's Gmail inbox. Arguments: profile -- contains information related to the
client/modules/Gmail.py:48
↓ 1 callers
Function
firstLine
(text)
client/modules/Joke.py:48
↓ 1 callers
Function
formatArticle
(article)
client/modules/HN.py:81
↓ 1 callers
Function
formatArticle
(article)
client/modules/News.py:72
↓ 1 callers
Method
fuzzy_playlists
returns playlist names that match query best as possible
client/modules/MPDControl.py:406
↓ 1 callers
Method
gather
(self)
client/notifier.py:38
↓ 1 callers
Function
generateSMSEmail
Generates an email from a user's phone number based on their carrier.
client/app_utils.py:41
↓ 1 callers
Method
getAllNotifications
Return a list of notifications in chronological order. Note that this function is consuming, so consecutive calls
client/notifier.py:63
↓ 1 callers
Function
getRandomJoke
(filename=jasperpath.data('text', 'JOKES.txt'))
client/modules/Joke.py:9
↓ 1 callers
Function
getSender
Returns the best-guess sender of an email. Arguments: email -- the email whose sender is desired Returns: S
client/modules/Gmail.py:10
↓ 1 callers
Function
getTopArticles
(maxResults=None)
client/modules/News.py:21
↓ 1 callers
Function
getTopStories
Returns the top headlines from Hacker News. Arguments: maxResults -- if provided, returns a random sample of size maxResults
client/modules/HN.py:23
↓ 1 callers
Function
get_all_phrases
Gets phrases from all modules. Returns: A list of phrases in all modules plus additional phrases passed to this function.
client/vocabcompiler.py:510
↓ 1 callers
Method
get_config
(cls)
client/tts.py:367
↓ 1 callers
Function
get_engines
()
client/stt.py:652
↓ 1 callers
Function
get_forecast_by_name
(location_name)
client/modules/Weather.py:75
↓ 1 callers
Function
get_git_revision
Gets the current git revision hash as hex string. If the git executable is missing or git is unable to get the revision, None is returned
client/diagnose.py:116
↓ 1 callers
Method
get_instance
(cls)
client/tts.py:56
↓ 1 callers
Function
get_locations
()
client/modules/Weather.py:41
↓ 1 callers
Function
get_phrases_from_module
Gets phrases from a module. Arguments: module -- a module reference Returns: The list of phrases in this module.
client/vocabcompiler.py:479
↓ 1 callers
Function
get_pip_requirements
Gets the PIP requirements from a text file. If the files does not exists or is not readable, it returns None Arguments: fname --
client/diagnose.py:92
↓ 1 callers
Method
get_soup_playlist
Returns the list of unique words that comprise playlist names
client/modules/MPDControl.py:338
↓ 1 callers
Function
get_subclasses
(cls)
client/stt.py:653
↓ 1 callers
Function
get_subclasses
(cls)
client/tts.py:670
↓ 1 callers
Method
handleForever
Delegates user input to the handling function when activated.
client/conversation.py:17
↓ 1 callers
Method
handleForever
(self)
client/modules/MPDControl.py:157
↓ 1 callers
Function
handleResponse
(text)
client/modules/HN.py:62
↓ 1 callers
Function
handleResponse
(text)
client/modules/News.py:53
↓ 1 callers
Method
is_available
(cls)
client/stt.py:534
↓ 1 callers
Method
next
(self)
client/modules/MPDControl.py:308
↓ 1 callers
Method
open_dict
(self, fname, membername=None)
client/vocabcompiler.py:341
↓ 1 callers
Function
parseDirections
(text)
client/modules/Weather.py:20
↓ 1 callers
Method
pause
(self)
client/modules/MPDControl.py:300
↓ 1 callers
Method
previous
(self)
client/modules/MPDControl.py:313
↓ 1 callers
Function
punchLine
(text)
client/modules/Joke.py:51
↓ 1 callers
Function
replaceAcronyms
Replaces some commonly-used acronyms for an improved verbal weather report.
client/modules/Weather.py:15
↓ 1 callers
Function
run
()
client/populate.py:11
↓ 1 callers
Function
run
Performs a series of checks against the system and writes the results to the logging system. Returns: The number of failed check
client/diagnose.py:135
↓ 1 callers
Method
run
(self)
client/notifier.py:17
↓ 1 callers
Method
say
(self, phrase)
client/tts.py:398
next →
1–100 of 282, ranked by callers