Skip to content

Commit

Permalink
Merge pull request #8 from milahu/merge-Uberi-pr536-14f038f-docs-fix-…
Browse files Browse the repository at this point in the history
…simple-typo-covnert---convert-by-timgates42

Merge uberi pr536 14f038f docs fix simple typo covnert   convert by timgates42
  • Loading branch information
milahu authored Mar 5, 2022
2 parents 7457320 + 0658a48 commit 2191d3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion speech_recognition/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ def get_aiff_data(self, convert_rate=None, convert_width=None):
sample_rate = self.sample_rate if convert_rate is None else convert_rate
sample_width = self.sample_width if convert_width is None else convert_width

# the AIFF format is big-endian, so we need to covnert the little-endian raw data to big-endian
# the AIFF format is big-endian, so we need to convert the little-endian raw data to big-endian
if hasattr(audioop, "byteswap"): # ``audioop.byteswap`` was only added in Python 3.4
raw_data = audioop.byteswap(raw_data, sample_width)
else: # manually reverse the bytes of each sample, which is slower but works well enough as a fallback
Expand Down

0 comments on commit 2191d3f

Please sign in to comment.