transcribe_streaming_infinite.py does not support Cloud Speech-to-Text V2 and cannot be used with V2.
The source code referenced from this page (see the endless streaming tutorial) is this file, but it is V1 code and cannot be used in V2.
Please let me know if there is already a page or file that can be referenced in V2.