6but self-evaluation during audience-directed performance could distract from ongoing 7 execution 3 . It remains unknown how animals switch between practice and performance 8 modes, and how evaluation systems process errors across distinct performance contexts. 9 We recorded from striatal-projecting dopamine (DA) neurons as male songbirds 10 transitioned from singing alone to singing female-directed courtship song. In the presence 11 of the female, singing-related performance error signals were reduced or gated off and DA 12 neurons were instead phasically activated by female vocalizations. Mesostriatal DA 13 neurons can thus dynamically change their tuning with changes in social context. 14 When a male zebra finch sings its courtship song to a female of interest, song is highly 15 stereotyped and tonic levels of dopamine (DA) are increased in Area X, a vocal motor basal 16 ganglia nucleus capable of regulating song variability 4-8 . Yet when males practice alone, song is 17 highly variable and tonic DA levels are decreased in Area X 4, 9 . Blockade or disruption of striatal 18 DA signaling eliminates the social context-dependent transition between 'practice' and female-19directed 'performance' modes 10, 11 , suggesting that tonic DA levels actively regulate ongoing 20 vocal variability 5, 7, 8, 12 .
21DA has an additional learning function during singing distinct from, and difficult to 22 reconcile with, its role in modulating vocal variability during courtship 7, 13 . Specifically, when 23 2 males sing alone, Area X projecting DA neurons in the ventral tegmental area (VTAx) encode 24 phasic error signals, necessary and sufficient for learning [14][15][16] , characterized by brief suppressions 25 following worse-than-predicted song syllable outcomes and activations following better-than-26 predicted ones (Fig. 1a) 17 . Phasic DA signals thus encode errors in predicted song quality, i.e. the 27 difference between how good a syllable sounded and how good it was predicted to sound based 28 on recent practice. 29 Do the same songbird DA neurons that modulate ongoing vocal variability also evaluate 30 recent vocal performance for learning, and if so, how? In mammals, it has been proposed that the 31 state-dependent vigor of ongoing behavior is regulated by the tonic discharge of DA neurons, 32 while the evaluation of reward outcomes for learning is regulated by brief, phasic error signals in 33 the same neurons 18-21 . To test this hypothesis, it is necessary to observe how tonic firing rates and 34 phasic error signals change (or don't change) in single neurons across clear-cut, DA-dependent 35 changes in behavioral state. This experiment is uniquely possible in songbirds singing alone or 36 singing female-directed courtship song (Fig. 1).
37To test how DA neurons may implement these dual functions, we recorded 38 antidromically-identified VTAx neurons as we controlled both perceived error (with syllable-39 targeted distorted auditory feedback (DAF) 17, 22, 23 ) and behavioral state (with female present or 40 a...