Skip to content

Commit

Permalink
Open TFLite file as rb
Browse files Browse the repository at this point in the history
  • Loading branch information
wq2012 committed Sep 15, 2024
1 parent 4bd80ec commit 55f9e1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lingvo/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import setuptools

VERSION = "0.0.5"
VERSION = "0.0.6"

with open("README.md", "r") as file_object:
LONG_DESCRIPTION = file_object.read()
Expand Down
2 changes: 1 addition & 1 deletion lingvo/sidlingvo/fe_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def read_mean_stddev_csv(csv_file: str) -> tuple[np.ndarray, np.ndarray]:


def get_int_samples(file_name: str) -> np.ndarray:
with open(file_name) as f:
with open(file_name, "rb") as f:
sample_rate, int_samples = wavfile.read(f)

if sample_rate != 16000:
Expand Down

0 comments on commit 55f9e1e

Please sign in to comment.