streamlit-audio-recorder icon indicating copy to clipboard operation
streamlit-audio-recorder copied to clipboard

The audio player is being displayed twice

Open jojonki opened this issue 1 year ago • 1 comments

Hi,

Thank you for your great project. It really helps.

I was indeed able to record audio from the Streamlit app running on my remote server. However, when I stop the recording, two players for the same audio are displayed. Please check the attached image. Is this the default behavior?

image

My environment

  • Python 3.8.9
  • streamlit==1.29.0
  • streamlit-audiorec==0.1.3
  • code
import streamlit as st
from st_audiorec import st_audiorec
wav_audio_data = st_audiorec()

if wav_audio_data is not None:
    st.audio(wav_audio_data, format='audio/wav')

jojonki avatar Jan 11 '24 06:01 jojonki

The if condition and line after it is not necessary.

import streamlit as st
from st_audiorec import st_audiorec
wav_audio_data = st_audiorec()

DiwakarBasnet avatar Apr 11 '24 04:04 DiwakarBasnet