Byte convert inside

This commit is contained in:
John Ryan 2023-08-14 14:01:15 +01:00
parent d448db6dc3
commit 4338423833
1 changed files with 2 additions and 1 deletions

View File

@ -113,7 +113,8 @@ cdef class Whisper:
cdef cnp.ndarray[cnp.float32_t, ndim=1, mode="c"] frames = temp cdef cnp.ndarray[cnp.float32_t, ndim=1, mode="c"] frames = temp
cdef char* c_string = lang # Convert bytes to char* language_bytes = str(lang).encode("utf-8")
cdef char* c_string = language_bytes # Convert bytes to char*
params = default_params(c_string) params = default_params(c_string)