Skip to content

Commit

Permalink
Refactor project to rename from "obs-cloudvocal" to "cloudvocal" and …
Browse files Browse the repository at this point in the history
…improve Clova provider initialization error handling
  • Loading branch information
royshil committed Dec 4, 2024
1 parent 848627c commit ed19137
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
6 changes: 3 additions & 3 deletions buildspec.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
},
"platformConfig": {
"macos": {
"bundleId": "com.royshilkrot.obs-cloudvocal"
"bundleId": "com.royshilkrot.cloudvocal"
}
},
"name": "obs-cloudvocal",
"displayName": "Realtime Professional-Grade Cloud Transcription and Translation for OBS",
"name": "cloudvocal",
"displayName": "Realtime Professional-Grade Cloud Transcription and Translation Plugin",
"version": "0.0.1",
"author": "Roy Shilkrot",
"website": "https://locaal.ai",
Expand Down
6 changes: 6 additions & 0 deletions src/cloud-providers/clova/clova-provider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,16 @@ bool ClovaProvider::init()
{
// Initialize the Clova provider
obs_log(gf->log_level, "Initializing Clova provider");

// Add your initialization code here
chunk_id = 1;
initialized = false;

if (gf->cloud_provider_api_key.empty()) {
obs_log(LOG_ERROR, "Clova API key is empty");
return false;
}

grpc::SslCredentialsOptions ssl_opts;
this->channel = grpc::CreateChannel("clovaspeech-gw.ncloud.com:50051",
grpc::SslCredentials(ssl_opts));
Expand Down
2 changes: 1 addition & 1 deletion src/cloudvocal.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void cloudvocal_show(void *data);
void cloudvocal_hide(void *data);

const char *const PLUGIN_INFO_TEMPLATE =
"<a href=\"https://github.com/locaal-ai/obs-cloudvocal/\">CloudVocal</a> ({{plugin_version}}) by "
"<a href=\"https://github.com/locaal-ai/cloudvocal/\">CloudVocal</a> ({{plugin_version}}) by "
"<a href=\"https://github.com/locaal-ai\">Locaal AI</a> ❤️ "
"<a href=\"https://locaal.ai\">Support & Follow</a>";

Expand Down
2 changes: 1 addition & 1 deletion src/plugin-main.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
obs-cloudvocal
cloudvocal
Copyright (C) 2024 Roy Shilkrot [email protected]
This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion src/plugin-support.c.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
obs-cloudvocal
cloudvocal
Copyright (C) 2024 Roy Shilkrot [email protected]

This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion src/plugin-support.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
obs-cloudvocal
cloudvocal
Copyright (C) 2024 Roy Shilkrot [email protected]
This program is free software; you can redistribute it and/or modify
Expand Down

0 comments on commit ed19137

Please sign in to comment.