MCPcopy Create free account

hub / github.com/jasperproject/jasper-client / functions

Functions282 in github.com/jasperproject/jasper-client

↓ 58 callersMethodsay
(self, phrase, OPTIONS=" -vdefault+m3 -p 40 -s 160 --stdout > say.wav")
client/mic.py:258
↓ 14 callersMethodcompile
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 callersMethodis_available
(cls)
client/tts.py:362
↓ 9 callersMethodplay
Plays the current song or accepts a song to play. Arguments: songs -- a list of song objects playlis
client/modules/MPDControl.py:259
↓ 8 callersMethodparse
(self, fname, membername=None)
client/vocabcompiler.py:354
↓ 8 callersMethodplay
(self, filename)
client/tts.py:127
↓ 7 callersMethodrunConversation
Generic method for spoofing conversation. Arguments: query -- The initial input to the server. inputs -- Additional input, if
tests/test_modules.py:21
↓ 6 callersMethodmatches_phrases
Convenience method to check if this vocabulary exactly contains the phrases passed to this method. Arguments: ph
client/vocabcompiler.py:107
↓ 5 callersMethod__init__
(self, language="en-US")
client/tts.py:357
↓ 5 callersMethodactiveListen
Records until a second of silence or times out after 12 seconds Returns the first matching string or None
client/mic.py:186
↓ 5 callersMethodcurrent_song
(self)
client/modules/MPDControl.py:282
↓ 5 callersMethodtranslate
(self, words)
client/g2p.py:123
↓ 4 callersMethodgetScore
(self, data)
client/mic.py:42
↓ 4 callersMethodget_config
(self, *args, **kwargs)
tests/test_vocabcompiler.py:121
↓ 4 callersMethodget_instance
(cls, vocabulary_name, phrases)
client/stt.py:33
↓ 4 callersMethodtranscribe
(self, fp)
client/stt.py:484
↓ 4 callersMethodtranslate
(self, *args, **kwargs)
tests/test_vocabcompiler.py:124
↓ 3 callersMethod_emptyBrain
()
tests/test_brain.py:19
↓ 3 callersMethod_makeurl
(self, path, query={})
client/tts.py:542
↓ 3 callersFunctiongetTimezone
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 callersFunctionget_engines
()
client/tts.py:669
↓ 3 callersMethodquery
Passes user input to the appropriate module, testing it against each candidate module's isValid function. Arguments:
client/brain.py:59
↓ 3 callersFunctionsimple_request
(var, cleanVar, cleanInput=None)
client/populate.py:18
↓ 2 callersMethod_get_response
(self, data)
client/stt.py:525
↓ 2 callersMethod_regenerate_request_url
(self)
client/stt.py:340
↓ 2 callersMethodactiveListenToAllOptions
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 callersFunctioncheck_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 callersMethodexecute
(cls, fst_model, input, is_file=False, nbest=None)
client/g2p.py:19
↓ 2 callersFunctiongetDate
(email)
client/modules/Gmail.py:27
↓ 2 callersMethodgetNotification
Returns a notification. Note that this function is consuming.
client/notifier.py:55
↓ 2 callersMethodget_active_instance
(cls)
client/stt.py:51
↓ 2 callersMethodget_config
(cls)
client/stt.py:454
↓ 2 callersFunctionget_forecast_by_wmo_id
(wmo_id)
client/modules/Weather.py:88
↓ 2 callersMethodget_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 callersMethodget_passive_instance
(cls)
client/stt.py:46
↓ 2 callersMethodget_voices
(cls)
client/tts.py:257
↓ 2 callersMethodpassiveListen
Listens for PERSONA in everyday sound. Times out after LISTEN_TIME, so needs to be restarted.
client/mic.py:89
↓ 2 callersMethodphrases_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 callersMethodplay_mp3
(self, filename)
client/tts.py:96
↓ 2 callersMethodrun
(self)
jasper.py:112
↓ 2 callersMethodstop
(self)
client/modules/MPDControl.py:304
↓ 2 callersMethodvolume
(self, level=None, interval=None)
client/modules/MPDControl.py:288
↓ 1 callersMethod_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 callersMethod_compile_languagemodel
Compiles the languagemodel from a text. Arguments: text -- the text the languagemodel will be generated from
client/vocabcompiler.py:273
↓ 1 callersMethod_compile_vocabulary
Abstract method that should be overridden in subclasses with custom compilation code. Arguments: phrases -- a li
client/vocabcompiler.py:177
↓ 1 callersMethod_get_grammar
(self, phrases)
client/vocabcompiler.py:396
↓ 1 callersMethod_get_word_defs
(self, lexicon, phrases)
client/vocabcompiler.py:400
↓ 1 callersMethod_translate_word
(self, word)
client/g2p.py:107
↓ 1 callersMethod_translate_words
(self, words)
client/g2p.py:110
↓ 1 callersMethodactiveListen
(self, THRESHOLD=None, LISTEN=True, MUSIC=False)
client/test_mic.py:24
↓ 1 callersMethodactiveListen
(self, THRESHOLD=None, LISTEN=True, MUSIC=False)
client/local_mic.py:23
↓ 1 callersFunctioncheck_network_connection
Checks if jasper can connect a network server. Arguments: server -- (optional) the server to connect with (Default:
client/diagnose.py:19
↓ 1 callersFunctionclean_number
(s)
client/populate.py:39
↓ 1 callersMethodcommunicate
(self)
tests/test_g2p.py:44
↓ 1 callersMethoddelegateInput
(self, input)
client/modules/MPDControl.py:84
↓ 1 callersFunctiondetectYears
(input)
client/alteration.py:5
↓ 1 callersMethoddo_in_tempdir
(self)
tests/test_vocabcompiler.py:43
↓ 1 callersFunctionextractOrdinals
(text)
client/modules/HN.py:64
↓ 1 callersFunctionextractOrdinals
(text)
client/modules/News.py:55
↓ 1 callersMethodfetchThreshold
(self)
client/mic.py:47
↓ 1 callersFunctionfetchUnreadEmails
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 callersFunctionfirstLine
(text)
client/modules/Joke.py:48
↓ 1 callersFunctionformatArticle
(article)
client/modules/HN.py:81
↓ 1 callersFunctionformatArticle
(article)
client/modules/News.py:72
↓ 1 callersMethodfuzzy_playlists
returns playlist names that match query best as possible
client/modules/MPDControl.py:406
↓ 1 callersMethodgather
(self)
client/notifier.py:38
↓ 1 callersFunctiongenerateSMSEmail
Generates an email from a user's phone number based on their carrier.
client/app_utils.py:41
↓ 1 callersMethodgetAllNotifications
Return a list of notifications in chronological order. Note that this function is consuming, so consecutive calls
client/notifier.py:63
↓ 1 callersFunctiongetRandomJoke
(filename=jasperpath.data('text', 'JOKES.txt'))
client/modules/Joke.py:9
↓ 1 callersFunctiongetSender
Returns the best-guess sender of an email. Arguments: email -- the email whose sender is desired Returns: S
client/modules/Gmail.py:10
↓ 1 callersFunctiongetTopArticles
(maxResults=None)
client/modules/News.py:21
↓ 1 callersFunctiongetTopStories
Returns the top headlines from Hacker News. Arguments: maxResults -- if provided, returns a random sample of size maxResults
client/modules/HN.py:23
↓ 1 callersFunctionget_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 callersMethodget_config
(cls)
client/tts.py:367
↓ 1 callersFunctionget_engines
()
client/stt.py:652
↓ 1 callersFunctionget_forecast_by_name
(location_name)
client/modules/Weather.py:75
↓ 1 callersFunctionget_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 callersMethodget_instance
(cls)
client/tts.py:56
↓ 1 callersFunctionget_locations
()
client/modules/Weather.py:41
↓ 1 callersFunctionget_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 callersFunctionget_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 callersMethodget_soup_playlist
Returns the list of unique words that comprise playlist names
client/modules/MPDControl.py:338
↓ 1 callersFunctionget_subclasses
(cls)
client/stt.py:653
↓ 1 callersFunctionget_subclasses
(cls)
client/tts.py:670
↓ 1 callersMethodhandleForever
Delegates user input to the handling function when activated.
client/conversation.py:17
↓ 1 callersMethodhandleForever
(self)
client/modules/MPDControl.py:157
↓ 1 callersFunctionhandleResponse
(text)
client/modules/HN.py:62
↓ 1 callersFunctionhandleResponse
(text)
client/modules/News.py:53
↓ 1 callersMethodis_available
(cls)
client/stt.py:534
↓ 1 callersMethodnext
(self)
client/modules/MPDControl.py:308
↓ 1 callersMethodopen_dict
(self, fname, membername=None)
client/vocabcompiler.py:341
↓ 1 callersFunctionparseDirections
(text)
client/modules/Weather.py:20
↓ 1 callersMethodpause
(self)
client/modules/MPDControl.py:300
↓ 1 callersMethodprevious
(self)
client/modules/MPDControl.py:313
↓ 1 callersFunctionpunchLine
(text)
client/modules/Joke.py:51
↓ 1 callersFunctionreplaceAcronyms
Replaces some commonly-used acronyms for an improved verbal weather report.
client/modules/Weather.py:15
↓ 1 callersFunctionrun
()
client/populate.py:11
↓ 1 callersFunctionrun
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 callersMethodrun
(self)
client/notifier.py:17
↓ 1 callersMethodsay
(self, phrase)
client/tts.py:398
next →1–100 of 282, ranked by callers