Skip to content

Commit

Permalink
fullstr -> str_full
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov authored Nov 24, 2023
1 parent 138bde3 commit 03ea3d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion whisper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3593,7 +3593,7 @@ const char * whisper_lang_str(int id) {
return nullptr;
}

const char * whisper_lang_fullstr(int id) {
const char * whisper_lang_str_full(int id) {
for (const auto & kv : g_lang) {
if (kv.second.first == id) {
return kv.second.second.c_str();
Expand Down
2 changes: 1 addition & 1 deletion whisper.h
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ extern "C" {
WHISPER_API const char * whisper_lang_str(int id);

// Return the short string of the specified language name (e.g. 2 -> "german"), returns nullptr if not found
WHISPER_API const char * whisper_lang_fullstr(int id);
WHISPER_API const char * whisper_lang_str_full(int id);

// Use mel data at offset_ms to try and auto-detect the spoken language
// Make sure to call whisper_pcm_to_mel() or whisper_set_mel() first
Expand Down

0 comments on commit 03ea3d3

Please sign in to comment.