Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit 0233776

Browse files
committed
avoid symlinks in the folder created by speechbrain
1 parent 6b467c4 commit 0233776

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

voice_assistant_lib.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import re
88
import subprocess
99
import time
10+
import tempfile
1011
import traceback
1112
from pathlib import Path
1213
from typing import Any, Callable, Optional
@@ -346,7 +347,7 @@ def verify_voice(audio_path, voiceprint_path):
346347
)
347348
logging.info('Speech verification model has been initialized')
348349

349-
score_ts, prediction_ts = g.verification_model.verify_files(audio_path, voiceprint_path)
350+
score_ts, prediction_ts = g.verification_model.verify_files(audio_path, voiceprint_path, savedir=tempfile.gettempdir())
350351

351352
score = score_ts.item()
352353
prediction = prediction_ts.item()

0 commit comments

Comments
 (0)