MCPcopy Create free account

hub / github.com/ItsWendell/google-assistant-desktop-client / functions

Functions59 in github.com/ItsWendell/google-assistant-desktop-client

↓ 18 callersMethodsay
* Let's the Google Assistant say a given sentence. * * @param string sentence * @param int Delay in seconds
src/renderer/providers/assistant/assistant.js:208
↓ 4 callersMethodassist
* Sends a request to Google Assistant to start audio streaming * or for the text input given in the arguemnt * * @param {*} inputQuery
src/renderer/providers/assistant/assistant.js:233
↓ 4 callersMethodgoogleAuthenticate
* Opens a Google popup to authenticate.
src/renderer/providers/authentication/authentication.js:74
↓ 4 callersMethodplay
* Play's the Audio Player if nessesary.
src/renderer/providers/assistant/player.js:84
↓ 4 callersMethodstopConversation
Stops the microphone output and plays what's left in the buffer (if any)
src/renderer/providers/assistant/assistant.js:290
↓ 3 callersFunctionlazyLoadContainer
(name)
src/renderer/providers/router/index.js:9
↓ 3 callersMethodstop
* Empties the audioQueue and resets the current player.
src/renderer/providers/assistant/player.js:95
↓ 2 callersMethodappendBuffer
* Appends or queue's audio data into the buffer. * @param {*} buffer
src/renderer/providers/assistant/player.js:51
↓ 2 callersMethodhandleAuthorization
* Fetches the tokens and saves them. * * @param {String} code
src/renderer/providers/spotify/spotify.js:27
↓ 2 callersMethodinitialize
()
src/renderer/providers/assistant/player.js:12
↓ 2 callersMethodrefreshAccessToken
(err, tokens)
src/renderer/providers/authentication/authentication.js:61
↓ 2 callersMethodrun
* Run's a given command, function is a replicate of an Artyom function. * * @param {*} command
src/renderer/providers/commands/index.js:35
↓ 2 callersMethodrunCommand
* Run's a command based on the input text query * @param {*} textQuery * @param {*} queueCommand Queue the command when the assistant has ended cu
src/renderer/providers/assistant/assistant.js:260
↓ 2 callersMethodsaveTokens
* Saves the given tokens. * * [TODO]: Save tokens in localStorage instead of a local file. * @param {*} tokens
src/renderer/providers/authentication/authentication.js:104
↓ 2 callersFunctionsetToolbarSize
* Set the size of the toolbar / assistant window. * * @param {Object} size Information about the user. * @param {Number} size.width The name of the
src/main/index.js:50
↓ 2 callersMethodskipToNext
()
src/renderer/providers/spotify/spotify.js:140
↓ 1 callersFunctionafterEach
()
test/e2e/utils.js:5
↓ 1 callersMethodask
(question)
src/renderer/providers/assistant/assistant.js:159
↓ 1 callersMethodauthenticate
()
src/renderer/providers/spotify/spotify.js:107
↓ 1 callersFunctionauthorizeApp
(url, browserWindowParams)
src/renderer/providers/authentication/google-electron-auth.js:30
↓ 1 callersFunctionbeforeEach
()
test/e2e/utils.js:12
↓ 1 callersFunctioncreateWindows
* Creates the main application window.
src/main/index.js:135
↓ 1 callersMethoddownsampleBuffer
* Downsamles the buffer if needed to right sampleRate & converts the data into an int16 buffer * * @param buffer buffer
src/renderer/providers/assistant/microphone.js:59
↓ 1 callersMethodfindCommand
* Finds a command given by a text sentence. * @param string sentence
src/renderer/providers/commands/index.js:54
↓ 1 callersFunctiongetAuthenticationUrl
(scopes, clientId, clientSecret, redirectUri = 'urn:ietf:wg:oauth:2.0:oob')
src/renderer/providers/authentication/google-electron-auth.js:17
↓ 1 callersFunctiongetAuthorizationCode
(scopes, clientId, clientSecret, redirectUri = 'urn:ietf:wg:oauth:2.0:oob')
src/renderer/providers/authentication/google-electron-auth.js:58
↓ 1 callersMethodgetMyCurrentPlayingTrack
()
src/renderer/providers/spotify/spotify.js:121
↓ 1 callersFunctioninitializeApp
()
src/main/index.js:181
↓ 1 callersMethodonAssistantFinishedTalking
Triggers when the audio player has stopped playing audio.
src/renderer/providers/assistant/assistant.js:145
↓ 1 callersMethodonAudioProcess
* Processes the audio to be ready for Google. * * @param event event
src/renderer/providers/assistant/microphone.js:45
↓ 1 callersMethodopen
* Opens & initializes the Microphone stream from the browser
src/renderer/providers/assistant/microphone.js:23
↓ 1 callersMethodplayPing
()
src/renderer/providers/assistant/player.js:101
↓ 1 callersFunctionregisterEvents
()
src/main/index.js:103
↓ 1 callersFunctionregisterShortcuts
* Registers the application shortcodes.
src/main/index.js:71
↓ 1 callersFunctionregisterTrayIcon
* Registers the application tray icon. * * @returns {Undefined}
src/main/index.js:84
↓ 1 callersMethodrequestAuthorizationCode
()
src/renderer/providers/spotify/spotify.js:61
↓ 1 callersMethodreset
* Reconstructs the current player.
src/renderer/providers/assistant/player.js:29
↓ 1 callersMethodsaveTokens
* Saves the tokens from the included spotify web api client.
src/renderer/providers/spotify/spotify.js:45
↓ 1 callersMethodsetup
Loads commands from files within this folder.
src/renderer/providers/commands/index.js:17
↓ 1 callersMethodsetup
* Setups the player with the given buffer as source.
src/renderer/providers/assistant/player.js:36
↓ 1 callersMethodsetupAudioProcessor
* Set's up the audio processor required to process the mpeg receiving by Google.
src/renderer/providers/assistant/player.js:62
↓ 1 callersMethodshuffle
(playTracks = true)
src/renderer/providers/spotify/spotify.js:152
↓ 1 callersMethodupdateResponseWindow
(html)
src/renderer/providers/assistant/assistant.js:155
FunctionaddMessage
(state, message)
src/renderer/providers/store/assistant.js:12
Methodauthenticate
()
src/renderer/providers/authentication/authentication.js:29
Methodauthenticate
* Sets up the Google Assistant for Electron. * @param {*} OAuth2Client
src/renderer/providers/assistant/assistant.js:319
Methodconstructor
()
src/renderer/providers/commands/index.js:9
Methodconstructor
()
src/renderer/providers/authentication/authentication.js:17
Methodconstructor
()
src/renderer/providers/spotify/spotify.js:12
Methodconstructor
()
src/renderer/providers/assistant/assistant.js:14
Methodconstructor
(sampleRate = 16000)
src/renderer/providers/assistant/microphone.js:5
Methodconstructor
()
src/renderer/providers/assistant/player.js:7
FunctionelectronGoogleOauth
(browserWindowParams, httpAgent)
src/renderer/providers/authentication/google-electron-auth.js:57
Methodplay
()
src/renderer/providers/spotify/spotify.js:166
MethodplayPing
()
src/renderer/providers/assistant/assistant.js:223
FunctionremoveMessage
(state, message)
src/renderer/providers/store/assistant.js:15
MethodresetTokens
* Removes the locally saved tokens.
src/renderer/providers/authentication/authentication.js:122
MethodsearchTrack
(searchTerm)
src/renderer/providers/spotify/spotify.js:131
FunctionupdateLatestMessage
(state, message)
src/renderer/providers/store/assistant.js:18