Skip to content

Conversation

@Fleker
Copy link
Collaborator

@Fleker Fleker commented Jun 28, 2017

This PR makes volume control much better

  • Allows users to set volume by saying "Set volume to X"
  • This value persists power cycles through SharedPreferences
ASSISTANT_AUDIO_RESPONSE_CONFIG = AudioOutConfig.newBuilder()
.setEncoding(ENCODING_OUTPUT)
.setSampleRateHertz(SAMPLE_RATE)
.setVolumePercentage(Math.round(initVolume))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to use initVolume * 100.0f / maxVolume to make sure it is scaled correctly b/w the internal sys volume and Assistant volume

@Fleker Fleker closed this Aug 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant