Skip to content

Commit ed19137

Browse files
committed
Refactor project to rename from "obs-cloudvocal" to "cloudvocal" and improve Clova provider initialization error handling
1 parent 848627c commit ed19137

File tree

6 files changed

+13
-7
lines changed

6 files changed

+13
-7
lines changed

buildspec.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@
3333
},
3434
"platformConfig": {
3535
"macos": {
36-
"bundleId": "com.royshilkrot.obs-cloudvocal"
36+
"bundleId": "com.royshilkrot.cloudvocal"
3737
}
3838
},
39-
"name": "obs-cloudvocal",
40-
"displayName": "Realtime Professional-Grade Cloud Transcription and Translation for OBS",
39+
"name": "cloudvocal",
40+
"displayName": "Realtime Professional-Grade Cloud Transcription and Translation Plugin",
4141
"version": "0.0.1",
4242
"author": "Roy Shilkrot",
4343
"website": "https://locaal.ai",

src/cloud-providers/clova/clova-provider.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,16 @@ bool ClovaProvider::init()
1818
{
1919
// Initialize the Clova provider
2020
obs_log(gf->log_level, "Initializing Clova provider");
21+
2122
// Add your initialization code here
2223
chunk_id = 1;
2324
initialized = false;
2425

26+
if (gf->cloud_provider_api_key.empty()) {
27+
obs_log(LOG_ERROR, "Clova API key is empty");
28+
return false;
29+
}
30+
2531
grpc::SslCredentialsOptions ssl_opts;
2632
this->channel = grpc::CreateChannel("clovaspeech-gw.ncloud.com:50051",
2733
grpc::SslCredentials(ssl_opts));

src/cloudvocal.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ void cloudvocal_show(void *data);
2020
void cloudvocal_hide(void *data);
2121

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

src/plugin-main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
obs-cloudvocal
2+
cloudvocal
33
Copyright (C) 2024 Roy Shilkrot [email protected]
44
55
This program is free software; you can redistribute it and/or modify

src/plugin-support.c.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
obs-cloudvocal
2+
cloudvocal
33
Copyright (C) 2024 Roy Shilkrot [email protected]
44

55
This program is free software; you can redistribute it and/or modify

src/plugin-support.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
obs-cloudvocal
2+
cloudvocal
33
Copyright (C) 2024 Roy Shilkrot [email protected]
44
55
This program is free software; you can redistribute it and/or modify

0 commit comments

Comments
 (0)