Skip to content

Commit af108e1

Browse files
small tweaks
1 parent b70e451 commit af108e1

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

charts/doggo/templates/statefulset.yaml renamed to charts/doggo/templates/deployment.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
apiVersion: apps/v1
2-
kind: StatefulSet
2+
kind: Deployment
33
metadata:
44
name: {{ include "doggo.fullname" . }}
55
labels:
66
{{- include "doggo.labels" . | nindent 4 }}
77
spec:
88
replicas: 1
9-
updateStrategy:
10-
type: RollingUpdate
119
selector:
1210
matchLabels:
1311
{{- include "doggo.selectorLabels" . | nindent 6 }}

doggo.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ def _listen_sync(self):
224224
audio = sd.rec(int(RECORDING_DURATION * sd.default.samplerate), channels=1, samplerate=sd.default.samplerate)
225225
sd.wait()
226226

227-
# audio = librosa.resample(audio, orig_sr=sd.default.samplerate, target_sr=16000)
227+
# if sd.default.samplerate != 16000:
228+
# audio = librosa.resample(audio, orig_sr=sd.default.samplerate, target_sr=16000)
228229

229230
bytes_io = BytesIO()
230231
bytes_io.name = "audio.mp3"

0 commit comments

Comments
 (0)