Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow tensorflow in place of tflite #50

Open
wants to merge 1 commit into
base: wyoming-v1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion programs/wake/openwakeword-lite/bin/server/openwakeword.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
from typing import List

import numpy as np
import tflite_runtime.interpreter as tflite
try:
import tflite_runtime.interpreter as tflite
except ModuleNotFoundError:
import tensorflow.lite as tflite

from wyoming.wake import Detection

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
from typing import List, Optional, TextIO

import numpy as np
import tflite_runtime.interpreter as tflite
try:
import tflite_runtime.interpreter as tflite
except ModuleNotFoundError:
import tensorflow.lite as tflite

from wyoming.wake import Detection

Expand Down
5 changes: 4 additions & 1 deletion programs/wake/precise-lite/bin/precise_shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@
from typing import Any, Optional, Union

import numpy as np
import tflite_runtime.interpreter as tflite
try:
import tflite_runtime.interpreter as tflite
except ModuleNotFoundError:
import tensorflow.lite as tflite
from sonopy import mfcc_spec

MAX_WAV_VALUE = 32768
Expand Down