lundi 22 octobre 2018

Acessar byte array do web audio api

English Translation (from Google Translate):

I'm creating a component to view an audio file, that part I've already achieved, which can be seen in this image.

My biggest problem now is that I need a way to get all the bytes of the audio file, using the Web Audio API or some other method in typescript (preferably) or javascript.

I have researched and found the AnalyserNode, however it shows only a part of the audio being executed, it does not provide an array with all the bytes of the file.

Does anyone know of any other solution?

Thank you.

Original:

Estou criando um componente para visualizar um arquivo de áudio, essa parte eu já consegui, o que poder ser visto nesta imagem.

Meu maior problema agora é que eu preciso de uma forma de obter todos os bytes do arquivo de áudio, usando a Web Audio API ou algum outro método em typescript(preferencialmente) ou javascript.

Eu pesquisei e encontrei o AnalyserNode, porém ele mostra somente uma parte do áudio que está sendo executada, não disponibiliza um array com todos os bytes do arquivo.

Alguém conhece alguma outra solução?

Obrigado.




Aucun commentaire:

Enregistrer un commentaire