# Help for using whisper with embeddings

**URL:** <https://discuss.huggingface.co/t/help-for-using-whisper-with-embeddings/58261>\
**Category:** Models\
**Created:** [October 12, 2023, 6:49am UTC](https://discuss.huggingface.co/t/help-for-using-whisper-with-embeddings/58261 "2023-10-12T06:49:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![laro1](https://avatars.discourse-cdn.com/v4/letter/l/ad7895/32.png) [@laro1](https://discuss.huggingface.co/u/laro1)\
**Post date:** [October 12, 2023, 6:49am UTC](https://discuss.huggingface.co/t/help-for-using-whisper-with-embeddings/58261/1 "2023-10-12T06:49:45Z")

</div>

I’m trying to use whisper to transcribe a wav file.  
I’m drowning with the documentation and configurations.

- I want to use base or medium model.
- I want to be able to decide to run on CPU or GPU
- For test.wav file I want to get it’s transcription
- In addition to the transcription I want to get the encoder embeddings for this test.wav

Can you please help me and write the code for this ?

---

<div class="post-metadata">

**Author:** ![AbdulaBeyg](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@AbdulaBeyg](https://discuss.huggingface.co/u/AbdulaBeyg)\
**Post date:** [November 22, 2023, 4:43am UTC](https://discuss.huggingface.co/t/help-for-using-whisper-with-embeddings/58261/2 "2023-11-22T04:43:42Z")

</div>

@laro1 go to anywhere on this? I’m on the same trajectory like u but not able to get encoder embeddings
