0
각도 j를 사용하여 POST 요청을 API로 보내고 있습니다. 일부 헤더와 오디오 파일을 보내야합니다. 컨트롤러에 동일한 샘플 코드를 작성했습니다.각도 JS의 POST 요청을 통해 오디오 데이터 보내기
$scope.files='bostonSeltics.wav';
$scope.getText = function (access_token) {$http({method:'POST',
url:'https://api.att.com/rest/1/SpeechToText',
headers:{
'Accept':'application/json',
'Authorization':'Bearer '+access_token,
'X-SpeechContext': 'Generic',
'Content-Type':'audio/wav'},
data:$scope.files}).success(function(response){
......
}).error(function(error){
......
});
난 그냥이 정확한 방법은 오디오 데이터를 전송할지 여부를 알고 싶어.
미리 감사드립니다.
감사합니다, 모한
쉽게 자사의 메이크업은보다 업로드 할