KieronQuinn / AmbientMusicMod

Port of Now Playing from Pixels to other Android devices
GNU General Public License v3.0
1.9k stars 41 forks source link

On Demand Recognition keeps failing to record audio #247

Closed TicTecOfficial closed 3 months ago

TicTecOfficial commented 3 months ago

Device: Samsung S8/dreamlte ROM: LineageOS 20 Android Version: 13

Info: The app keeps saying that the recognition failed with the reason being that it "Failed to record audio, please try again"

I have traced the log down to this specific line(which is always the only line of log that forms when an On Demand recognition is requested:

06-21 06:31:08.602 4759 6875 D ConnectivityService: requestNetwork for uid/pid:10163/14139 activeRequest: null callbackRequest: 1859 [NetworkRequest [ REQUEST id=1860, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10163 RequestorUid: 10163 RequestorPkg: com.kieronquinn.app.ambientmusicmod UnderlyingNetworks: Null] ]] callback flags: 0 order: 2147483647

TicTecOfficial commented 3 months ago

Additional note: if the retry button is pushed continuously, sometimes the errors can vary from "A recognition is already running etc." to "Timed out waiting for response"

KieronQuinn commented 3 months ago

That log is nothing to do with audio recording. Can you send a full log of it happening please?

TicTecOfficial commented 3 months ago

That log is nothing to do with audio recording. Can you send a full log of it happening please?

this may sound incredibly stupid, but how do you pull a log file?

KieronQuinn commented 3 months ago

If you're using an app, save the log using it. If you're using a command line, pipe it to a file

TicTecOfficial commented 3 months ago

does this help logcat.txt

KieronQuinn commented 3 months ago

OnDemandManagerImpl: Sound Search failed with an error, status code 7

This error comes from the Google app, there's nothing I can do.