react-native-audio-waveform icon indicating copy to clipboard operation
react-native-audio-waveform copied to clipboard

Can you add API for wave array (array of number that represent the wave) ?

Open albirrkarim opened this issue 1 year ago • 3 comments
trafficstars

I need the hook of useAudioPlayer in src/hooks/useAudioPlayer.tsx

they have extractWaveformData

what i need is the hook can be accessed via import like this

import { useAudioPlayer } from "@simform_solutions/react-native-audio-waveform"

Thanks for making this amazing library

albirrkarim avatar May 25 '24 04:05 albirrkarim

Can you please elaborate more on this? Why actually do you need that hook exported globally or what information do you need?

ravir-simform avatar May 29 '24 04:05 ravir-simform

i need the wave data to perform audio analysis

albirrkarim avatar May 29 '24 04:05 albirrkarim

Can you please elaborate more on this? Why actually do you need that hook exported globally or what information do you need?

Hello, in my case need prepare button MUTE.

import { useAudioPlayer } from '@simform_solutions/react-native-audio-waveform/lib/hooks'

const { getDuration, setVolume } = useAudioPlayer()

  const volume = await setVolume({
    playerKey: `PlayerFor${path}`,
    volume: 0,
  })

but when unmute I don't know prev. volume value)

anatooly avatar Jul 24 '24 11:07 anatooly