Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

faster-whisper inferencing problem #1673

Open
glory03023 opened this issue Apr 24, 2024 · 2 comments
Open

faster-whisper inferencing problem #1673

glory03023 opened this issue Apr 24, 2024 · 2 comments

Comments

@glory03023
Copy link

Hello, how are you?
I am building faster-whisper windows POC by ctranslate2.
And i created ctranslate2::models::Whisper object whisperpool.
and write the code such as:
std::vector<std::futurectranslate2::models::WhisperGenerationResult> results;
results = whisper_pool.generate(features, prompts, whisper_options);
At this time, how can i get the result string from results object.?

@minhthuc2502
Copy link
Collaborator

To get the result you could follow this minimum example.:

std::vector<ctranslate2::models::WhisperGenerationResult> outputs;
for (auto& result : results) {
  outputs.push_back(result.get);
}
// get result from outputs
...

@glory03023
Copy link
Author

Hi, @minhthuc2502 , thank you for your guide.
have you ever tried to make faster-whisper run with pure c/c++ code?
I have made visual studio project for windows POC.
here is the link: https://github.com/glory03023/faster-whisper-windows.git
And still getting error when running, could you please see on it and guide me what should i do to run it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants