Whisk together the sugar, water, cocoa powder, and espresso powder in a small saucepan and heat over medium heat. Once the sugar is dissolved, remove from heat.
Whisk in the vanilla extract and almond extract.
Allow to cool at room temperature for about 15 minutes, then pour into a syrup bottle. Store in the fridge for up to 2 weeks!