Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ItsWendell/google-assistant-desktop-client
/ functions
Functions
59 in github.com/ItsWendell/google-assistant-desktop-client
⨍
Functions
59
◇
Types & classes
12
↓ 18 callers
Method
say
* 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 callers
Method
assist
* 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 callers
Method
googleAuthenticate
* Opens a Google popup to authenticate.
src/renderer/providers/authentication/authentication.js:74
↓ 4 callers
Method
play
* Play's the Audio Player if nessesary.
src/renderer/providers/assistant/player.js:84
↓ 4 callers
Method
stopConversation
Stops the microphone output and plays what's left in the buffer (if any)
src/renderer/providers/assistant/assistant.js:290
↓ 3 callers
Function
lazyLoadContainer
(name)
src/renderer/providers/router/index.js:9
↓ 3 callers
Method
stop
* Empties the audioQueue and resets the current player.
src/renderer/providers/assistant/player.js:95
↓ 2 callers
Method
appendBuffer
* Appends or queue's audio data into the buffer. * @param {*} buffer
src/renderer/providers/assistant/player.js:51
↓ 2 callers
Method
handleAuthorization
* Fetches the tokens and saves them. * * @param {String} code
src/renderer/providers/spotify/spotify.js:27
↓ 2 callers
Method
initialize
()
src/renderer/providers/assistant/player.js:12
↓ 2 callers
Method
refreshAccessToken
(err, tokens)
src/renderer/providers/authentication/authentication.js:61
↓ 2 callers
Method
run
* Run's a given command, function is a replicate of an Artyom function. * * @param {*} command
src/renderer/providers/commands/index.js:35
↓ 2 callers
Method
runCommand
* 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 callers
Method
saveTokens
* Saves the given tokens. * * [TODO]: Save tokens in localStorage instead of a local file. * @param {*} tokens
src/renderer/providers/authentication/authentication.js:104
↓ 2 callers
Function
setToolbarSize
* 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 callers
Method
skipToNext
()
src/renderer/providers/spotify/spotify.js:140
↓ 1 callers
Function
afterEach
()
test/e2e/utils.js:5
↓ 1 callers
Method
ask
(question)
src/renderer/providers/assistant/assistant.js:159
↓ 1 callers
Method
authenticate
()
src/renderer/providers/spotify/spotify.js:107
↓ 1 callers
Function
authorizeApp
(url, browserWindowParams)
src/renderer/providers/authentication/google-electron-auth.js:30
↓ 1 callers
Function
beforeEach
()
test/e2e/utils.js:12
↓ 1 callers
Function
createWindows
* Creates the main application window.
src/main/index.js:135
↓ 1 callers
Method
downsampleBuffer
* 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 callers
Method
findCommand
* Finds a command given by a text sentence. * @param string sentence
src/renderer/providers/commands/index.js:54
↓ 1 callers
Function
getAuthenticationUrl
(scopes, clientId, clientSecret, redirectUri = 'urn:ietf:wg:oauth:2.0:oob')
src/renderer/providers/authentication/google-electron-auth.js:17
↓ 1 callers
Function
getAuthorizationCode
(scopes, clientId, clientSecret, redirectUri = 'urn:ietf:wg:oauth:2.0:oob')
src/renderer/providers/authentication/google-electron-auth.js:58
↓ 1 callers
Method
getMyCurrentPlayingTrack
()
src/renderer/providers/spotify/spotify.js:121
↓ 1 callers
Function
initializeApp
()
src/main/index.js:181
↓ 1 callers
Method
onAssistantFinishedTalking
Triggers when the audio player has stopped playing audio.
src/renderer/providers/assistant/assistant.js:145
↓ 1 callers
Method
onAudioProcess
* Processes the audio to be ready for Google. * * @param event event
src/renderer/providers/assistant/microphone.js:45
↓ 1 callers
Method
open
* Opens & initializes the Microphone stream from the browser
src/renderer/providers/assistant/microphone.js:23
↓ 1 callers
Method
playPing
()
src/renderer/providers/assistant/player.js:101
↓ 1 callers
Function
registerEvents
()
src/main/index.js:103
↓ 1 callers
Function
registerShortcuts
* Registers the application shortcodes.
src/main/index.js:71
↓ 1 callers
Function
registerTrayIcon
* Registers the application tray icon. * * @returns {Undefined}
src/main/index.js:84
↓ 1 callers
Method
requestAuthorizationCode
()
src/renderer/providers/spotify/spotify.js:61
↓ 1 callers
Method
reset
* Reconstructs the current player.
src/renderer/providers/assistant/player.js:29
↓ 1 callers
Method
saveTokens
* Saves the tokens from the included spotify web api client.
src/renderer/providers/spotify/spotify.js:45
↓ 1 callers
Method
setup
Loads commands from files within this folder.
src/renderer/providers/commands/index.js:17
↓ 1 callers
Method
setup
* Setups the player with the given buffer as source.
src/renderer/providers/assistant/player.js:36
↓ 1 callers
Method
setupAudioProcessor
* Set's up the audio processor required to process the mpeg receiving by Google.
src/renderer/providers/assistant/player.js:62
↓ 1 callers
Method
shuffle
(playTracks = true)
src/renderer/providers/spotify/spotify.js:152
↓ 1 callers
Method
updateResponseWindow
(html)
src/renderer/providers/assistant/assistant.js:155
Function
addMessage
(state, message)
src/renderer/providers/store/assistant.js:12
Method
authenticate
()
src/renderer/providers/authentication/authentication.js:29
Method
authenticate
* Sets up the Google Assistant for Electron. * @param {*} OAuth2Client
src/renderer/providers/assistant/assistant.js:319
Method
constructor
()
src/renderer/providers/commands/index.js:9
Method
constructor
()
src/renderer/providers/authentication/authentication.js:17
Method
constructor
()
src/renderer/providers/spotify/spotify.js:12
Method
constructor
()
src/renderer/providers/assistant/assistant.js:14
Method
constructor
(sampleRate = 16000)
src/renderer/providers/assistant/microphone.js:5
Method
constructor
()
src/renderer/providers/assistant/player.js:7
Function
electronGoogleOauth
(browserWindowParams, httpAgent)
src/renderer/providers/authentication/google-electron-auth.js:57
Method
play
()
src/renderer/providers/spotify/spotify.js:166
Method
playPing
()
src/renderer/providers/assistant/assistant.js:223
Function
removeMessage
(state, message)
src/renderer/providers/store/assistant.js:15
Method
resetTokens
* Removes the locally saved tokens.
src/renderer/providers/authentication/authentication.js:122
Method
searchTrack
(searchTerm)
src/renderer/providers/spotify/spotify.js:131
Function
updateLatestMessage
(state, message)
src/renderer/providers/store/assistant.js:18