# Issue with audiorate

**URL:** <https://discourse.gstreamer.org/t/issue-with-audiorate/349>\
**Category:** Application Development\
**Created:** [October 19, 2023, 8:32am UTC](https://discourse.gstreamer.org/t/issue-with-audiorate/349 "2023-10-19T08:32:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![parithi](https://discourse.gstreamer.org/letter_avatar_proxy/v4/letter/p/54ee81/32.png) [@parithi](https://discourse.gstreamer.org/u/parithi)\
**Post date:** [October 19, 2023, 8:32am UTC](https://discourse.gstreamer.org/t/issue-with-audiorate/349/1 "2023-10-19T08:32:08Z")

</div>

audiorate element is not working. It is working only when in and out rates are same.

Version: 1.22.6  
Pipeline:  
gst-launch-1.0 audiotestsrc ! audio/x-raw, rate=44100 ! audiorate ! audio/x-raw, rate=48000 ! checksumsink

Error:  
0:00:00.017624759 49431 0x55779ae5cf80 ERROR GST\_PIPELINE subprojects/gstreamer/gst/parse/grammar.y:1068:gst\_parse\_perform\_link: could not link audiorate0 to checksumsink0, audiorate0 can’t handle caps audio/x-raw, rate=(int)48000  
WARNING: erroneous pipeline: could not link audiorate0 to checksumsink0, audiorate0 can’t handle caps audio/x-raw, rate=(int)48000

---

<div class="post-metadata">

**Author:** ![parithi](https://discourse.gstreamer.org/letter_avatar_proxy/v4/letter/p/54ee81/32.png) [@parithi](https://discourse.gstreamer.org/u/parithi)\
**Post date:** [October 19, 2023, 10:56am UTC](https://discourse.gstreamer.org/t/issue-with-audiorate/349/2 "2023-10-19T10:56:50Z")

</div>

It’s my mistake. audioresample should be used instead of audiorate.
