Fix ASR pipeline bug when using some kwargs
Author: jhj0517
Pull request: yes

# What does this PR do?
Always Thanks for your work.
In `AutomaticSpeechRecognitionPipeline`, when using `temperature`, `no_speech_threshold` and `logprob_threshold` kwargs, `token_ids` has List of float types and it occurs following TypeError:
```
  File "C:\Whisper_Project\Whisper-WebUI\venv\Lib\site-packages\transformers\tokenization_utils_fast.py", line 657, in _decode
    text = self._tokenizer.decode(token_ids, skip_special_tokens=skip_special_tokens)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument 'ids': 'float' object cannot be interpreted as an integer
```

### Reproduction 
```
from transformers import pipeline

input_path = "test_audio.mp3"

pipe = pipeline(
    "automatic-speech-recognition",
    model="openai/whisper-tiny",
    torch_dtype="float16",
    device="cuda",
)

kwargs = {
    "language": "en",
    "task": "transcribe",
    "temperature": 0.7,
    "no_speech_threshold": 0.6,
    "logprob_threshold": -1.0,
}
segments = pipe(
    inputs=[input_path],
    return_timestamps=True,
    chunk_length_s=30,
    batch_size=24,
    generate_kwargs=kwargs
)
```

This PR fixes the error by casting it to list of int if its type is float.

## Before submitting
- [ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
- [x] Did you read the [contributor guideline](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md#create-a-pull-request),
      Pull Request section?
- [ ] Was this discussed/approved via a Github issue or the [forum](https://discuss.huggingface.co/)? Please add a link
      to it if that's the case.
- [ ] Did you make sure to update the documentation with your changes? Here are the
      [documentation guidelines](https://github.com/huggingface/transformers/tree/main/docs), and
      [here are tips on formatting docstrings](https://github.com/huggingface/transformers/tree/main/docs#writing-source-documentation).
- [ ] Did you write any new necessary tests?


## Who can review?
Thanks!!

tokenizers: @ArthurZucker
speech models: @ylacombe, @eustlb

<!-- Your PR will be replied to more quickly if you can figure out the right person to tag with @

 If you know how to use git blame, that is the easiest way, otherwise, here is a rough guide of **who to tag**.
 Please tag fewer than 3 people.

Models:

- text models: @ArthurZucker
- vision models: @amyeroberts, @qubvel
- speech models: @ylacombe, @eustlb
- graph models: @clefourrier

Library:

- flax: @sanchit-gandhi
- generate: @zucchini-nlp (visual-language models) or @gante (all others)
- pipelines: @Rocketknight1
- tensorflow: @gante and @Rocketknight1
- tokenizers: @ArthurZucker
- trainer: @muellerzr and @SunMarc
- chat templates: @Rocketknight1

Integrations:

- deepspeed: HF Trainer/Accelerate: @muellerzr
- ray/raytune: @richardliaw, @amogkam
- Big Model Inference: @SunMarc
- quantization (bitsandbytes, autogpt): @SunMarc @MekkCyber

Documentation: @stevhliu

HF projects:

- accelerate: [different repo](https://github.com/huggingface/accelerate)
- datasets: [different repo](https://github.com/huggingface/datasets)
- diffusers: [different repo](https://github.com/huggingface/diffusers)
- rust tokenizers: [different repo](https://github.com/huggingface/tokenizers)

Maintained examples (not research project or legacy):

- Flax: @sanchit-gandhi
- PyTorch: See Models above and tag the person corresponding to the modality of the example.
- TensorFlow: @Rocketknight1

 -->


Comments:
This may be caused by `to_py_obj()`:

https://github.com/huggingface/transformers/blob/a06a0d12636756352494b99b5b264ac9955bc735/src/transformers/tokenization_utils_base.py#L3818

It's converted to list of `float` when using `temperature`, `no_speech_threshold`, and `logprob_threshold` parameters in the pipeline. So it occurs TypeError.



cc @eustlb can you have a look? 

Hey there, sorry for the delay and thanks a lot your patience 🤗
I am unable to reproduce the issue, everything runs fine with v4.48.0. Whisper underwent few changes and bug fixes and this one might have been fixed in the process. Can you confirm?

@eustlb  I've just confirmed that this is not reproducible with `transformers==4.48.0`.

Thanks for your hard work. I'm closing since this is no longer reproducible!