Применяя ИК-фильтр, появляется шум произнесения ⇐ IOS
-
Anonymous
Применяя ИК-фильтр, появляется шум произнесения
In my iOS application, using swift
i am getting audio from digital health device (BLE). In the form of raw data.
That raw data we simply cast it to unsigned int.
func applyFilterToData(decoded: Data) -> Data { // Example usage var lastData = Data() for decodedData in decoded { let unsignedData = UInt8(decodedData) let lowPassUInt8 = iirFilterNew.filter(Double(unsignedData)) lastData.append(lowPassUInt8) filteredDataToShare.append(lastData) self.n = (self.n + 1) % 9 } // Receive UInt8 -> Data return lastData } We are getting audio it has background noise, we want to remove the background noise from it.
i receive data from BLE as rawData
i apply IIR filter in it, try to filter the noise, but not able to filter the code properly.
func filter(_ input: Double) -> UInt8 { // Update input history xHistory.insert(input, at: 0) xHistory.removeLast() // Calculate output var output = b[0] * xHistory[0] for i in 1..
Источник: https://stackoverflow.com/questions/780 ... oise-comes
In my iOS application, using swift
i am getting audio from digital health device (BLE). In the form of raw data.
That raw data we simply cast it to unsigned int.
func applyFilterToData(decoded: Data) -> Data { // Example usage var lastData = Data() for decodedData in decoded { let unsignedData = UInt8(decodedData) let lowPassUInt8 = iirFilterNew.filter(Double(unsignedData)) lastData.append(lowPassUInt8) filteredDataToShare.append(lastData) self.n = (self.n + 1) % 9 } // Receive UInt8 -> Data return lastData } We are getting audio it has background noise, we want to remove the background noise from it.
i receive data from BLE as rawData
i apply IIR filter in it, try to filter the noise, but not able to filter the code properly.
func filter(_ input: Double) -> UInt8 { // Update input history xHistory.insert(input, at: 0) xHistory.removeLast() // Calculate output var output = b[0] * xHistory[0] for i in 1..
Источник: https://stackoverflow.com/questions/780 ... oise-comes
Мобильная версия