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-server output seems something wrong #160

Open
burness opened this issue Nov 14, 2024 · 1 comment
Open

faster-whisper-server output seems something wrong #160

burness opened this issue Nov 14, 2024 · 1 comment

Comments

@burness
Copy link

burness commented Nov 14, 2024

After a certain segment, all subsequent recognized texts are incorrect:

image
from openai import OpenAI

client = OpenAI(api_key="cant-be-empty", base_url="http://192.168.31.100:8000/v1/")

audio_file = open("../../examples/test_02.mp3", "rb")
transcript = client.audio.transcriptions.create(
    model="Systran/faster-whisper-large-v3", file=audio_file
)
print(transcript.text)

I use the same file to transcript in faster_whisper, it seems ok
image

from faster_whisper import WhisperModel

model_size = "large-v3"

model = WhisperModel(model_size, device="cuda")
segments, info = model.transcribe("test_02.mp3", beam_size=5)

print("Detected language '%s' with probability %f" % (info.language, info.language_probability))

for segment in segments:
    print("[%.2fs -> %.2fs] %s" % (segment.start, segment.end, segment.text))

Can anybody help me ?

@burness
Copy link
Author

burness commented Nov 14, 2024

It seems that the default temperature 0 cause this wrong. I change the 0 to 0.7 to solve it.

A small suggestion:

Change the default temperature 0 to 0.7.

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

1 participant