From 47c0de92b7099c508742d7c51e0f4eeb60cd9d24 Mon Sep 17 00:00:00 2001 From: "Noel.Sudhish" Date: Wed, 11 Sep 2024 16:20:02 +0530 Subject: [PATCH 1/2] noise removal api for vachan ai --- docker/docker-compose-production.yml | 6 ++++-- docker/docker-compose-staging.yml | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docker/docker-compose-production.yml b/docker/docker-compose-production.yml index e5d98e37..347e0788 100644 --- a/docker/docker-compose-production.yml +++ b/docker/docker-compose-production.yml @@ -345,7 +345,7 @@ services: - VE-network vachan-ai: - image: vachanengine/vachan-ai:0.0.0-alpha.14 + image: vachanengine/vachan-ai:0.0.0-alpha.15 healthcheck: timeout: 45s interval: 10s @@ -390,6 +390,7 @@ services: - VACHAN_AI_CRON_MINUTE=${VACHAN_AI_CRON_MINUTE:-30} - VACHAN_AI_BASEPATH=/v2/ai - VACHAN_USE_VE_AUTH=${VACHAN_USE_VE_AUTH:-True} + - VACHAN_AI_DFNT_SAMPLING_RATE=${VACHAN_AI_DFNT_SAMPLING_RATE:-48000} - VACHAN_DOMAIN=http://vachan-access:8007 - VACHAN_AI_DOMAIN=http://vachan-api command: uvicorn main:app --host 0.0.0.0 --port 8009 @@ -419,7 +420,7 @@ services: worker: - image: vachanengine/vachan-ai:0.0.0-alpha.14 + image: vachanengine/vachan-ai:0.0.0-alpha.15 healthcheck: timeout: 45s interval: 10s @@ -433,6 +434,7 @@ services: - VACHAN_POSTGRES_DATABASE=${VACHAN_POSTGRES_DATABASE:-vachan_dev} - VACHAN_POSTGRES_SCHEMA=${VACHAN_POSTGRES_SCHEMA:-aischema} - VACHAN_POSTGRES_PORT=5432 + - VACHAN_AI_DFNT_SAMPLING_RATE=${VACHAN_AI_DFNT_SAMPLING_RATE:-48000} - VACHAN_AI_DATA_PATH=${VACHAN_AI_DATA_PATH:-/home/gitautodeploy/vachan_ai_data} - VACHAN_AI_SERVED_MODEL_URI=${VACHAN_AI_SERVED_MODEL_URI:-http://dov2prodconn.bridgeconn.com:8085/v2/models} - VACHAN_AI_MLSERVER_REQUEST_TIMEOUT=120 diff --git a/docker/docker-compose-staging.yml b/docker/docker-compose-staging.yml index d3d2f85f..9512c1b2 100644 --- a/docker/docker-compose-staging.yml +++ b/docker/docker-compose-staging.yml @@ -338,7 +338,7 @@ services: - VE-network vachan-ai: - image: vachanengine/vachan-ai:0.0.0-alpha.14 + image: vachanengine/vachan-ai:0.0.0-alpha.15 healthcheck: timeout: 45s interval: 10s @@ -377,6 +377,7 @@ services: - VACHAN_AI_MLSERVER_REQUEST_TIMEOUT=120 - PYTHONPATH=/app/app/core/model_access/ai_model_core.py:/app/app/core/cloud_operations - VACHAN_REDIS_PASS=${VACHAN_REDIS_PASS:-vsfrgetd} + - VACHAN_AI_DFNT_SAMPLING_RATE=${VACHAN_AI_DFNT_SAMPLING_RATE:-48000} - VACHAN_AI_DELETION_PERIOD=${VACHAN_AI_DELETION_PERIOD:-14} - VACHAN_AI_CRON_DAY=${VACHAN_AI_CRON_DAY:-MON} - VACHAN_AI_CRON_HOUR=${VACHAN_AI_CRON_HOUR:-12} @@ -412,7 +413,7 @@ services: worker: - image: vachanengine/vachan-ai:0.0.0-alpha.14 + image: vachanengine/vachan-ai:0.0.0-alpha.15 healthcheck: timeout: 45s interval: 10s @@ -427,6 +428,7 @@ services: - VACHAN_POSTGRES_SCHEMA=${VACHAN_POSTGRES_SCHEMA:-aischema} - VACHAN_POSTGRES_PORT=5432 - VACHAN_USE_VE_AUTH=${VACHAN_USE_VE_AUTH:-True} + - VACHAN_AI_DFNT_SAMPLING_RATE=${VACHAN_AI_DFNT_SAMPLING_RATE:-48000} - VACHAN_AI_DATA_PATH=${VACHAN_AI_DATA_PATH:-/home/gitautodeploy/vachan_ai_data} - VACHAN_AI_SERVED_MODEL_URI=${VACHAN_AI_SERVED_MODEL_URI:-http://dov2prodconn.bridgeconn.com:8085/v2/models} - VACHAN_AI_MLSERVER_REQUEST_TIMEOUT=120 From 2e310b7713491f205d9fb548ca3c345b77da9df8 Mon Sep 17 00:00:00 2001 From: "Noel.Sudhish" Date: Thu, 12 Sep 2024 11:35:05 +0530 Subject: [PATCH 2/2] env variable added for vachan-ai --- docker/docker-compose-production.yml | 5 ++--- docker/docker-compose-staging.yml | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/docker/docker-compose-production.yml b/docker/docker-compose-production.yml index 347e0788..d9b54021 100644 --- a/docker/docker-compose-production.yml +++ b/docker/docker-compose-production.yml @@ -370,14 +370,12 @@ services: - VACHAN_AI_MODEL_SETTINGS_DIR=${VACHAN_AI_MODEL_SETTINGS_DIR:-serving_model} - VACHAN_AI_REQUEST_TIMEOUT=${VACHAN_AI_REQUEST_TIMEOUT:-60} - - VACHAN_AI_AWS_ACCESS_KEY=${VACHAN_AI_AWS_ACCESS_KEY} - - VACHAN_AI_AWS_SECRET_ACCESS_KEY=${VACHAN_AI_AWS_SECRET_ACCESS_KEY} - VACHAN_AI_S3_BUCKET=${VACHAN_AI_S3_BUCKET} - - VACHAN_AI_AWS_ACCOUNT_REGION=${VACHAN_AI_AWS_ACCOUNT_REGION} - AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} - AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} - VACHAN_AI_DATA_PATH=${VACHAN_AI_DATA_PATH:-/home/gitautodeploy/vachan_ai_data} + - VACHAN_AI_OPEN_VOICE_MIN_DURATION=${VACHAN_AI_OPEN_VOICE_MIN_DURATION:-3} - VACHAN_AI_LOGGING_LEVEL=INFO - VACHAN_LOGGING_LEVEL=INFO - VACHAN_AI_ENV=${VACHAN_AI_ENV:-Production} @@ -435,6 +433,7 @@ services: - VACHAN_POSTGRES_SCHEMA=${VACHAN_POSTGRES_SCHEMA:-aischema} - VACHAN_POSTGRES_PORT=5432 - VACHAN_AI_DFNT_SAMPLING_RATE=${VACHAN_AI_DFNT_SAMPLING_RATE:-48000} + - VACHAN_AI_OPEN_VOICE_MIN_DURATION=${VACHAN_AI_OPEN_VOICE_MIN_DURATION:-3} - VACHAN_AI_DATA_PATH=${VACHAN_AI_DATA_PATH:-/home/gitautodeploy/vachan_ai_data} - VACHAN_AI_SERVED_MODEL_URI=${VACHAN_AI_SERVED_MODEL_URI:-http://dov2prodconn.bridgeconn.com:8085/v2/models} - VACHAN_AI_MLSERVER_REQUEST_TIMEOUT=120 diff --git a/docker/docker-compose-staging.yml b/docker/docker-compose-staging.yml index 9512c1b2..40a45e79 100644 --- a/docker/docker-compose-staging.yml +++ b/docker/docker-compose-staging.yml @@ -363,15 +363,13 @@ services: - VACHAN_AI_MODEL_SETTINGS_DIR=${VACHAN_AI_MODEL_SETTINGS_DIR:-serving_model} - VACHAN_AI_REQUEST_TIMEOUT=${VACHAN_AI_REQUEST_TIMEOUT:-60} - - VACHAN_AI_AWS_ACCESS_KEY=${VACHAN_AI_AWS_ACCESS_KEY} - - VACHAN_AI_AWS_SECRET_ACCESS_KEY=${VACHAN_AI_AWS_SECRET_ACCESS_KEY} - VACHAN_AI_S3_BUCKET=${VACHAN_AI_S3_BUCKET} - - VACHAN_AI_AWS_ACCOUNT_REGION=${VACHAN_AI_AWS_ACCOUNT_REGION} - AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID} - AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY} - VACHAN_AI_DATA_PATH=${VACHAN_AI_DATA_PATH:-/home/gitautodeploy/vachan_ai_data} - VACHAN_AI_LOGGING_LEVEL=INFO + - VACHAN_AI_OPEN_VOICE_MIN_DURATION=${VACHAN_AI_OPEN_VOICE_MIN_DURATION:-3} - VACHAN_LOGGING_LEVEL=INFO - VACHAN_AI_ENV=${VACHAN_AI_ENV:-Production} - VACHAN_AI_MLSERVER_REQUEST_TIMEOUT=120 @@ -429,6 +427,7 @@ services: - VACHAN_POSTGRES_PORT=5432 - VACHAN_USE_VE_AUTH=${VACHAN_USE_VE_AUTH:-True} - VACHAN_AI_DFNT_SAMPLING_RATE=${VACHAN_AI_DFNT_SAMPLING_RATE:-48000} + - VACHAN_AI_OPEN_VOICE_MIN_DURATION=${VACHAN_AI_OPEN_VOICE_MIN_DURATION:-3} - VACHAN_AI_DATA_PATH=${VACHAN_AI_DATA_PATH:-/home/gitautodeploy/vachan_ai_data} - VACHAN_AI_SERVED_MODEL_URI=${VACHAN_AI_SERVED_MODEL_URI:-http://dov2prodconn.bridgeconn.com:8085/v2/models} - VACHAN_AI_MLSERVER_REQUEST_TIMEOUT=120