Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The audio player is being displayed twice #18

Open
jojonki opened this issue Jan 11, 2024 · 1 comment
Open

The audio player is being displayed twice #18

jojonki opened this issue Jan 11, 2024 · 1 comment

Comments

@jojonki
Copy link

jojonki commented Jan 11, 2024

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')
@DiwakarBasnet
Copy link

DiwakarBasnet commented Apr 11, 2024

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()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants