Skip to content

Commit

Permalink
Fix "W503" formatting problem.
Browse files Browse the repository at this point in the history
  • Loading branch information
enetor committed Jun 29, 2017
1 parent f8439ef commit 5d99e85
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/aiy/audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def __init__(self, input_device='default',

self._processors = []

self._chunk_bytes = (int(self.CHUNK_S * sample_rate_hz)
* channels * bytes_per_sample)
self._chunk_bytes = (int(self.CHUNK_S * sample_rate_hz) *
channels * bytes_per_sample)

self._cmd = [
'arecord',
Expand Down Expand Up @@ -189,8 +189,8 @@ def __init__(self, path, duration,
self._wav.setframerate(sample_rate_hz)

self._n_bytes = 0
self._total_bytes = (int(duration * sample_rate_hz)
* channels * bytes_per_sample)
self._total_bytes = (int(duration * sample_rate_hz) *
channels * bytes_per_sample)

def add_data(self, data):
"""Write frames to the file if they fit within the total size."""
Expand Down

0 comments on commit 5d99e85

Please sign in to comment.