let state = { channel : null , focusing : false , textToSpeakQueue : [ ] , voice : null , volume : 1 , rate : 2 , } ; export const assignState = ( partialNewState ) => { state = Object . assign ( { } , state , partialNewState ) ; } ; export const getState = ( ) => state ;