Hovering mouse over something in Blender shows python code, but how does one use it?
The error occurs because true is not a python keyword. You meant to use True (capitalized).

Use bpy.context.scene, this gets the active scene instead of a scene name "Scene".

The code usually refers to the operation or the datablock, which the button or UI controls changes or calls.

The following code works.

import bpy

# Next two lines assign absolute values ("True" / "False")
# bpy.context.scene.use_audio_scrub = True
# bpy.context.scene.use_audio_scrub = False

# method changing the use_audio_scrub state
def Custom_Toggle_Audio_Scrub():
    bpy.context.scene.use_audio_scrub = not bpy.context.scene.use_audio_scrub

# call and execute the method
Custom_Toggle_Audio_Scrub()