huggingface / ratchet

A cross-platform browser ML framework.
https://ratchet.sh
MIT License
580 stars 31 forks source link

`setWithoutTimestamps(true)` doesn't work. #224

Open ocavue opened 3 months ago

ocavue commented 3 months ago

I'm trying to run the ratchet-whisper example. I notice that DecodingOptionsBuilder has a setWithoutTimestamps() method. I assume that builder.setWithoutTimestamps(true) will remove the [00:00.000 --> 00:07.400] prefix from the output. However, after calling setWithoutTimestamps(true), I still can see these prefixes from the log.

{
    "processing_time": {
        "secs": 18,
        "nanos": 379500000
    },
    "segments": [ ... ],
    "formatted": "[00:00.000 --> 00:07.400]  It's a beautiful day in Abakadeth and the silly crocodile just woke up from a good night of sleep.\n[00:07.400 --> 00:10.600]  What are you going to do today, silly crocodile?\n[00:10.600 --> 00:12.600]  I'm gonna get some breakfast.\n[00:12.600 --> 00:15.400]  Eat breakfast.\n[00:15.400 --> 00:16.140]  Morning.\n"
}

I'm not sure whether this is a bug, or if I misunderstand this method.

FL33TW00D commented 3 months ago

No this isn't a bug, lack of functionality unfortunately. My apologies, we will add support.