Hi there. Has anyone compared the whispers? price/speed/quality?
There are many of them on the list, but it’s a pity to waste tokens on testing.
Hey.
I tested some whispers. Threw the results into a flow file. There’s a description of each node’s functions, cost, and execution time.
Flow saved here:
https://drive.google.com/drive/folders/1P5MqqM0Qt0ZJGME0Tn1BIZCPL5BDdPBx?usp=sharing
Haven’t found a built-in solution yet. I have to do it with Python code for each specific node.
Here’s how:
-
Find the “Python code” node and add it to the flow.
-
Go to the node settings and set the field to “Python code.”
-
Copy the ID of the whisper node (you’ll need it in the code) and create a link between the nodes.
-
Now copy this code and replace “NodeID” with the one you copied.
segments = context["NodeID"]["success"]["segments"]
result = ""
for segment in segments:
result = result + segment["speaker"]
result = result + ": "
result = result + segment["text"]
result = result + "\n\n"
_result = result
If everything worked right, it should look like this:
Thanks for helping me out again. It looks more complicated than I expected. I hope the developers come up with a more convenient way to work with the node data.