-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[vec][server] vpr demo support #1696
Conversation
return results[0][0] | ||
except Exception as e: | ||
LOGGER.error(f"MYSQL ERROR: {e} with sql: {sql}") | ||
sys.exit(1) | ||
|
||
def create_mysql_table_vpr(self, table_name): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vpr是什么缩写?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
声纹识别缩写
@@ -120,14 +122,83 @@ def delete_all_data(self, table_name): | |||
sys.exit(1) | |||
|
|||
def count_table(self, table_name): | |||
# Get the number of mysql table | |||
# Get the number of spk in mysql table |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spk_id 的话这个服务只支持声纹了,不支持音频检索
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
声纹和音频是两个服务,互不影响
embedding = get_audio_embedding(audio_path) | ||
mysql_cli.create_mysql_table_vpr(table_name) | ||
data = (spk_id, audio_path, str(embedding)) | ||
mysql_cli.load_data_to_mysql_vpr(table_name, data) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
insert_data_to_mysql_vpr
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
load 和 insert 在这里 没有差别
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
add enroll recog del list .etc interface for vpr demo, fix #1695