Saturday, September 26, 2015

15 Awesome Examples to Manipulate Audio Files Using Sound eXchange (SoX)

This article is part of the on-going Software for Geeks series. SoX stands forSound eXchange. SoX is a cross-platform command line audio utility tool that works on Linux, Windows and MacOS. It is very helpful in the following areas while dealing with audio and music files.

  • Audio File Converter
  • Editing audio files
  • Changing audio attributes
  • Adding audio effects
  • Plus lot of advanced sound manipulation features

In general, audio data is described by following four characteristics:
  1. Rate – The sample rate is in samples per second. For example, 44100/8000
  2. Data size – The precision the data is stored in.  For example, 8/16 bits
  3. Data encoding – What encoding the data type uses. For example, u-law,a-law
  4. Channels – How many channels are contained in the audio data.  For example, Stereo 2 channels
SoX supports over 20 audio file formats. To get the list of all supported formats, execute sox -h from the command line. One of the major benefits of a command-line audio/music tool is easy to use in scripts to perform more complex tasks in batch mode.

All the 15 examples mentioned below can be used to manipulate Audio files on Unix, Windows and MacOS. Make sure to download the corresponding SoX utility for your platform from the SoX – Sound eXchange download page.

1. Combine Multiple Audio Files to Single File

With the -m flag, sox adds two input files together to produce its output. The example below adds first_part.wav and second_part.wav leaving the result in whole_part.wav. You can also use soxmix command for this purpose.
$ sox -m first_part.wav second_part.wav whole_part.wav

(or)

$ soxmix first_part.wav second_part.wav whole_part.wav

2. Extract Part of the Audio File

Trim can trim off unwanted audio from the audio file.
Syntax : sox old.wav new.wav trim [SECOND TO START] [SECONDS DURATION].
  • SECOND TO START – Starting point in the voice file.
  • SECONDS DURATION – Duration of voice file to remove.
The command below will extract first 10 seconds from input.wav and stored it in output.wav
$ sox input.wav output.wav trim 0 10

3. Increase and Decrease Volume Using Option -v

Option -v is used to change (increase or decrease ) the volume.

Increase Volume

$ sox -v 2.0 foo.wav bar.wav

Decrease Volume

If we need to lower the volume on some files, we can lower them by using negative numbers. Lower Negative number will get more soft . In the following example, the 1st command (-0.5) will be louder than the 2nd command (-0.1)
$ sox -v -0.5 srcfile.wav test05.wav

$ sox -v -0.1 srcfile.wav test01.wav

4. Get Audio File Information

The stat option can provide lot of statistical information about a given audio file. The -e flag tells sox not to generate any output other than the statistical information.
$ sox foo.wav -e stat
Samples read: 3528000
Length (seconds): 40.000000
Scaled by: 2147483647.0
Maximum amplitude: 0.999969
Minimum amplitude: -1.000000
Midline amplitude: -0.000015
Mean norm: 0.217511
Mean amplitude: 0.003408
RMS amplitude: 0.283895
Maximum delta: 1.478455
Minimum delta: 0.000000
Mean delta: 0.115616
RMS delta: 0.161088
Rough frequency: 3982
Volume adjustment: 1.000

5. Play an Audio Song

Sox provides the option for playing and recording sound files. This example explains how to play an audio file on Unix, Linux. Playing a sound file is accomplished by copying the file to the device special file /dev/dsp. The following command plays the file music.wav: Option -t specifies the type of the file /dev/dsp.
$ sox music.wav -t ossdsp /dev/dsp
You can also use play command to play the audio file as shown below.
Syntax :play options Filename audio_effects

$ play -r 8000 -w music.wav

6. Play an Audio Song Backwards

Use the ‘reverse’ effect to reverse the sound in a sound file. This will reverse the file and store the result in output.wav
$ sox input.wav output.wav reverse
You can also use play command to hear the song in reverse without modifying the source file as shown below.
$ play test.wav reverse

7. Record a Voice File

‘play’ and ‘rec’ commands are companion commands for sox . /dev/dsp is the digital sampling and digital recording device. Reading the device activates the A/D converter for sound recording and analysis. /dev/dsp file works for both playing and recording sound samples.
$ sox -t ossdsp /dev/dsp test.wav
You can also use rec command for recording voice. If SoX is invoked as ‘rec’ the default sound device is used as an input source.
$ rec -r 8000 -c 1 record_voice.wav

8. Changing the Sampling Rate of a Sound File

To change the sampling rate of a sound file, use option -r followed by the sample rate to use, in Hertz. Use the following example, to change the sampling rate of file ‘old.wav’ to 16000 Hz, and write the output to ‘new.wav’
$ sox old.wav -r 16000 new.wav

9. Changing the Sampling Size of a Sound File

If we increase the sampling size , we will get better quality. Sample Size for audio is most often expressed as 8 bits or 16 bits. 8bit audio is more often used for voice recording.
  • -b Sample data size in bytes
  • -w Sample data size in words
  • -l Sample data size in long words
  • -d Sample data size in double long words
The following example will convert 8-bit audio file to 16-bit audio file.
$ sox -b input.wav -w output.wav

10. Changing the Number of Channels

The following example converts mono audio files to stereo.  Use Option -c to specify the number of channels .
$ sox mono.wav -c 2 stereo.wav
There are methods to convert stereo sound files to mono sound.  i.e to get a single channel from stereo file.

Selecting a Particular Channel

This is done by using the avg effect with an option indicating what channel to use. The options are -l for left, -r for right, -f for front, and -b for back.  Following example will extract the left channel
$ sox stereo.wav -c 1 mono.wav avg -l

Average the Channels

$ sox stereo.wav -c 1 mono.wav avg

11. Audio Converter – Music File Format Conversion

Sox is useful to convert one audio format to another. i.e from one encoding (ALAW, MP3) to another. Sox can recognize the input and desired output formats by parsing the file name extensions . It will take infile.ulaw and creates a GSM encoded file called outfile.gsm. You can also use sox to convert wav to mp3.
$ sox infile.ulaw outfile.gsm
If the file doesn’t have an extension in its name , using ‘-t’ option we can express our intention . Option -t  is used to specify the encoding type .
$ sox -t ulaw infile -t gsm outfile

12. Generate Different Types of Sounds

Using synth effect we can generate a number of standard wave forms and types of noise. Though this effect is used to generate audio, an input file must still be given, ‘-n’ option is used to specify the input file as null file .
$ sox -n synth len type freq
  • len – length of audio to synthesize. Format for specifying lengths in time is hh:mm:ss.frac
  • type is one of sine, square, triangle, sawtooth, trapezium, exp, [white]noise, pinknoise, brown-
    noise. Default is sine
  • freq – frequencies at the beginning/end of synthesis in Hz
The following example produces a 3 second 8000 kHz, audio file containing a sine-wave swept from 300 to 3300 Hz
$ sox -r 8000 -n output.au synth 3 sine 300-3300

13. Speed up the Sound in an Audio File

To speed up or slow down the sound of a file, use speed to modify the pitch and the duration of the file. This raises the speed and reduces the time. The default factor is 1.0 which makes no change to the audio. 2.0 doubles speed, thus time length is cut by a half and pitch is one interval higher.
Syntax: sox input.wav output.wav speed factor

$ sox input.wav output.wav speed 2.0

14. Multiple Changes to Audio File in Single Command

By default, SoX attempts to write audio data using the same data type, sample rate and channel count as per the input data. If the user wants the output file to be of a different format then user has to specify format options. If an output file format doesn’t support the same data type, sample rate, or channel count as the given input file format, then SoX will automatically select the closest values which it supports.
Converting a wav to raw. Following example convert sampling rate , sampling size , channel in single command line .
$ sox -r 8000 -w -c 1 -t wav source -r 16000 -b -c 2 -t raw destination

15. Convert Raw Audio File to MP3 Music File

There is no way to directly convert raw to mp3 file because mp3 will require compression information from raw file . First we need to convert raw to wav. And then convert wav to mp3.  In the exampe below, option -h indicates high quality.
Convert Raw Format to Wav Format:
$ sox -w -c 2 -r 8000 audio1.raw audio1.wav
Conver Wav Format to MP3 Format:
$ lame -h audio1.wav audio1.mp3

Using Sox spectrogram tool to analyze audio noise


While out on a walk near Lagos (Algarve, south Portugal) I noticed a loud buzzing/crackling sound. It sounded very similar to the kind of buzz/crackle you'd hear near high voltage transmission lines, but there was no power lines in sight. So I though I'd capture a few seconds of audio with a voice recorder app on my phone and look at the spectrum later to rule in/out an electrical origin: any thing electrical would have peaks at exactly 50Hz and harmonics of 50Hz.
It turns out that sox has a neat tool to create a spectrogram from any audio file:

sox recording.wav -n spectrogram -o spectrum.png

However the frequencies I was interested in were down well under 1kHz, so I first resampled at a rate twice the highest frequency of interest:

sox recording.wav -r 2k -o t.wav
sox t.wav -n spectrogram -o spectrum.png

So this is the result:



The buzz sound can be seen in the spectrograph as horizontal streaks at about 60Hz and 120Hz. Not being exactly 50Hz rules out an electrical origin. The frequency can also be seen to vary a little with time.

Here is a spectrogram of another recording I took on the way down to the beach later. There was multiple sources in this recording (audio file here) but fainter/further away.



and other (audio file here):


You can see multiple horizontal streaks  of varying frequencies.

Conclusion:

It's clear now the noise is from an insect. What insect, I have no idea. (Update: I think it might be Cicada)

If puzzled about the origin of a strange sound, record it and create a spectrogram... it might yield clues. Anything relating to utility power will be at the AC frequency (50Hz most of the world, 60H

Sunday, September 20, 2015

Breaking the model of Customer Care

Customer Care is facing a dilemma.

The market has changed but the discipline hasn’t. Customers want better service, they want it in every channel, and they want it now.
But better service costs more. It’s always been that way.
Until now. Finally, new technologies are breaking the link between low cost and low levels of service. And they’re transforming the dynamics of Customer Care forever, delivering lower costs and higher levels of service.
This slideshare will show you just how that’s possible. We hope you enjoy it.

Contact Us: Call 1-877-414-2676 

Tuesday, September 15, 2015

Why Curious People Are Destined for the C-Suite


SEPTEMBER 11, 2015

RECOMMENDED

SEPT15_11_160019812
When asked recently to name the one attribute CEOs will need most to succeed in the turbulent times ahead, Michael Dell, the chief executive of Dell, Inc., replied, “I would place my bet on curiosity.”
Dell was responding to a 2015 PwC survey of more than a thousand CEOs, a number of whom cited “curiosity” and “open-mindedness” as leadership traits that are becoming increasingly critical in challenging times. Another of the respondents, McCormick & Company CEO Alan D. Wilson, noted that business leaders who “are always expanding their perspective and what they know—and have that natural curiosity—are the people that are going to be successful.”
Welcome to the era of the curious leader, where success may be less about having all the answers and more about wondering and questioning. As Dell noted, curiosity can inspire leaders to continually seek out the fresh ideas and approaches needed to keep pace with change and stay ahead of competitors.
A curious, inquisitive leader also can set an example that inspires creative thinking throughout the company, according to Hollywood producer Brian Grazer. “If you’re the boss, and you manage by asking questions, you’re laying the foundation for the culture of your company or your group,” Grazer writes in his book, A Curious Mind. Grazer and others maintain that leading-by-curiosity can help generate more ideas from all areas of an organization, while also helping to raise employee engagement levels.
The notion that curiosity can be good for business is not entirely new, of course. Decades ago, Walt Disney declared that his company managed to keep innovating “because we’re curious, and curiosity keeps leading us down new paths.” But having that desire to keep exploring “new paths” becomes even more important in today’s fast-changing, innovation-driven marketplace.
In my own research for my book, A More Beautiful Question, I found numerous examples of current-day entrepreneurs and innovators—including Netflix’s Reed Hastings, Square’s Jack Dorsey, and the team behind Airbnb—who relied on curious inquiry as a starting point to reinventing entire industries. Dorsey, for example, was puzzled when an artist friend lost a big sale to a potential customer simply because the artist couldn’t accept a credit card. Dorsey wondered why only established businesses, and not smaller entrepreneurs, were able to conduct credit card transactions; his search for an answer resulted in Square, a more accessible credit card reader.
While curiosity has ignited numerous startup ventures, it also plays an important role at more established companies, where leaders are having to contend with disruptive change in the marketplace. “These days, a leader’s primary occupation must be to discover the future,” Panera Bread CEO Ron Shaich told me. It’s “a continual search,” Shaich says, requiring that today’s leader keep exploring new ideas—including ideas from other industries or even from outside the business world.
Advising business leaders to “be more curious” sounds simple enough, but it may require a change in leadership style. In many cases, managers and top executives have risen through the ranks by providing fixes and solutions, not by asking questions. And once they’ve attained a position of leadership, they may feel the need to project confident expertise.
To acknowledge uncertainty by wondering aloud and asking deep questions carries a risk: the leader may be perceived as lacking knowledge. In their book The Innovator’s DNA, authors Clayton Christensen, Hal Gregersen and Jeff Dyer observed that the curious, questioning leaders they studied seemed to overcome this risk because they had a rare blend of humility and confidence: They were humble enough to acknowledge to themselves that they didn’t have all the answers, and confident enough to be able to admit that in front of everyone else.
While we may tend to think of curiosity as a hardwired personality trait—meaning, one either is blessed with “a curious mind” or not—according to Ian Leslie, author of the book Curious, curiosity is actually “more of a state than a trait.” We all have the potential to be curious, given the right conditions.
Leslie notes that curiosity seems to bubble up when we are exposed to new information and then find ourselves wanting to know more. Hence, the would-be curious leader should endeavor to get “out of the bubble” when possible; to seek out new influences, ideas, and experiences that may fire up the desire to learn more and dig deeper.
Even when operating within familiar confines, curious leaders tend to try to see things from a fresh perspective. The ones I studied in my research seemed to have a penchant for bringing a “beginner’s mind” approach to old problems and stubborn challenges. They continually examined and re-examined their own assumptions and practices, asking deep, penetrating “Why” questions, as well as speculative “What if” and “How” questions.
Such leaders sometimes also evangelize about curiosity, urging people in their organizations to “Question Everything.” This can serve to model the behavior for others, though leaders may have to go much further—providing sufficient freedom and incentives—in order to actually create the conditions for curiosity to flourish company-wide.
In the end, it isn’t necessarily easy for a leader to foster curiosity on an individual or organizational level—but it may be well worth the effort. “With curiosity comes learning and new ideas,” says Dell. “If you’re not doing that, you’re going to have a real problem.”

Are You a Good Boss—or a Great One?


FROM THE JANUARY–FEBRUARY 2011 ISSUE

VIEW MORE FROM THE

RECOMMENDED

Am I good enough?”
“Am I ready? This is my big opportunity, but now I’m not sure I’m prepared.”
These thoughts plagued Jason, an experienced manager, as he lay awake one night fretting about a new position he’d taken. For more than five years he had run a small team of developers in Boston. They produced two highly successful lines of engineering textbooks for the education publishing arm of a major media conglomerate. On the strength of his reputation as a great manager of product development, he’d been chosen by the company to take over an online technical-education start-up based in London.
Jason arrived at his new office on a Monday morning, excited and confident, but by the end of his first week he was beginning to wonder whether he was up to the challenge. In his previous work he had led people who’d worked together before and required coordination but little supervision. There were problems, of course, but nothing like what he’d discovered in this new venture. Key members of his group barely talked to one another. Other publishers in the company, whose materials and collaboration he desperately needed, angrily viewed his new group as competition. The goals he’d been set seemed impossible—the group was about to miss some early milestones—and a crucial partnership with an outside organization had been badly, perhaps irretrievably, damaged. On top of all that, his boss, who was located in New York, offered little help. “That’s why you’re there” was the typical response whenever Jason described a problem. By Friday he was worried about living up to the expectations implied in that response.
Do Jason’s feelings sound familiar? Such moments of doubt and even fear may and often do come despite years of management experience. Any number of events can trigger them: An initiative you’re running isn’t going as expected. Your people aren’t performing as they should. You hear talk in the group that “the real problem here is lack of leadership.” You think you’re doing fine until you, like Jason, receive a daunting new assignment. You’re given a lukewarm performance review. Or one day you simply realize that you’re no longer growing and advancing—you’re stuck.

Most Managers Stop Working on Themselves

The whole question of how managers grow and advance is one we’ve studied, thought about, and lived with for years. As a professor working with high potentials, MBAs, and executives from around the globe, Linda meets people who want to contribute to their organizations and build fulfilling careers. As an executive, Kent has worked with managers at all levels of both private and public organizations. All our experience brings us to a simple but troubling observation: Most bosses reach a certain level of proficiency and stop there—short of what they could and should be.
We’ve discussed this observation with countless colleagues, who almost without exception have seen what we see: Organizations usually have a few great managers, some capable ones, a horde of mediocre ones, some poor ones, and some awful ones. The great majority of people we work with are well-intentioned, smart, accomplished individuals. Many progress and fulfill their ambitions. But too many derail and fail to live up to their potential. Why? Because they stop working on themselves.
Managers rarely ask themselves, “How good am I?” and “Do I need to be better?” unless they’re shocked into it. When didyou last ask those questions? On the spectrum of great to awful bosses, where do you fall?
Managers in new assignments usually start out receptive to change. The more talented and ambitious ones choose stretch assignments, knowing that they’ll have much to learn at first. But as they settle in and lose their fear of imminent failure, they often grow complacent. Every organization has its ways of doing things—policies, standard practices, and unspoken guidelines, such as “promote by seniority” and “avoid conflict.” Once they’re learned, managers often use them to get by—to “manage” in the worst sense of the word.
It doesn’t help that a majority of the organizations we see offer their managers minimal support and rarely press the experienced ones to improve. Few expect more of their leaders than short-term results, which by themselves don’t necessarily indicate real management skill.
In our experience, however, the real culprit is neither managerial complacency nor organizational failure: It is a lack of understanding. When bosses are questioned, it’s clear that many of them have stopped making progress because they simply don’t know how to.

Do you understand what’s required to become truly effective?

Too often managers underestimate how much time and effort it takes to keep growing and developing. Becoming a great boss is a lengthy, difficult process of learning and change, driven mostly by personal experience. Indeed, so much time and effort are required that you can think of the process as a journey—a journey of years.
What makes the journey especially arduous is that the lessons involved cannot be taught. Leadership is using yourself as an instrument to get things done in the organization, so it is about self-development. There are no secrets and few shortcuts. You and every other manager must learn the lessons yourself, based on your own experience as a boss. If you don’t understand the nature of the journey, you’re more likely to pause or lose hope and tell yourself, “I can’t do this” or “I’m good enough already.”

Do you understand what you’re trying to attain?

We all know how disorganized, fragmented, and even chaotic every manager’s workdays are. Given this reality, which is intensifying as work and organizations become more complex and fluid, how can you as a boss do anything more than cope with what comes at you day by day?
To deal with the chaos, you need a clear underlying sense of what’s important and where you and your group want to be in the future. You need a mental model that you can lay over the chaos and into which you can fit all the messy pieces as they come at you. This way of thinking begins with a straightforward definition: Management is responsibility for the performance of a group of people.
It’s a simple idea, yet putting it into practice is difficult, because management is defined by responsibility but done by exerting influence. To influence others you must make a difference not only in what they do but also in the thoughts and feelings that drive their actions. How do you actually do this?
To answer that question, you need an overarching, integrated way of thinking about your work as a manager. We offer an approach based on studies of management practice, our own observations, and our knowledge of where managers tend to go wrong. We call it the three imperatives: Manage yourself. Manage your network. Manage your team.
Is this the only way to describe management? No, of course not. But it’s clear, straightforward, and, above all, focused on what managers must actually do. People typically think of “management” as just the third imperative, but today all three are critical to success. Together they encompass the crucial activities that effective managers must perform to influence others. Mastering them is the purpose of your journey.

Manage Yourself

Management begins with you, because who you are as a person, what you think and feel, the beliefs and values that drive your actions, and especially how you connect with others all matter to the people you must influence. Every day those people examine every interaction with you, your every word and deed, to uncover your intentions. They ask themselves, “Can I trust this person?” How hard they work, their level of personal commitment, their willingness to accept your influence, will depend in large part on the qualities they see in you. And their perceptions will determine the answer to this fundamental question every manager must ask: Am I someone who can influence others productively?
Who you are shows up most clearly in the relationships you form with others, especially those for whom you’re responsible. It’s easy to get those crucial relationships wrong. Effective managers possess the self-awareness and self-management required to get them right.
José, a department head, told us of two managers who worked for him in the marketing department of a large maker of durable goods. Both managers were struggling to deliver the results expected of their groups. Both, it turned out, were creating dysfunctional relationships. One was frankly ambivalent about being “the boss” and hated it when people referred to him that way. He wanted to be liked, so he tried to build close personal relationships. He would say, in effect, “Do what I ask because we’re friends.” That worked for a while until, for good reasons, he had to turn down one “friend” for promotion and deny another one a bonus. Naturally, those people felt betrayed, and their dissatisfaction began to poison the feelings of everyone else in the group.
The other manager took the opposite approach. With her it was all business. No small talk or reaching out to people as people. For her, results mattered, and she’d been made the boss because she was the one who knew what needed to be done; it was the job of her people to execute. Not surprisingly, her message was always “Do what I say because I’m the boss.” She was effective—until people began leaving.
If productive influence doesn’t arise from being liked (“I’m your friend!”) or from fear (“I’m the boss!”), where does it come from? From people’s trust in you as a manager. That trust has two components: belief in your competence (you know what to do and how to do it) and belief in your character (your motives are good and you want your people to do well).
Trust is the foundation of all forms of influence other than coercion. You need to foster it.
Trust is the foundation of all forms of influence other than coercion, and you need to conduct yourself with others in ways that foster it. Management really does begin with who you are as a person.

Manage Your Network

We once talked to Kim, the head of a software company division, just as he was leaving a meeting of a task force consisting of his peers. He had proposed a new way of handling interdivisional sales, which he believed would increase revenue by encouraging each division to cross-sell other divisions’ products. At the meeting he’d made an extremely well-researched, carefully reasoned, and even compelling case for his proposal—which the group rejected with very little discussion. “How many of these people did you talk to about your proposal before the meeting?” we asked. None, it turned out. “But I anticipated all their questions and objections,” he protested, adding with some bitterness, “It’s just politics. If they can’t see what’s good for the company and them, I can’t help them.”
Many managers resist the need to operate effectively in their organizations’ political environments. They consider politics dysfunctional—a sign the organization is broken—and don’t realize that it unavoidably arises from three features inherent in all organizations: division of labor, which creates disparate groups with disparate and even conflicting goals and priorities; interdependence, which means that none of those groups can do their work without the others; and scarce resources, for which groups necessarily compete. Obviously, some organizations handle the politics better than others, but conflict and competition among groups are inevitable. How do they get resolved? Through organizational influence. Groups whose managers have influence tend to get what they need; other groups don’t.
Unfortunately, many managers deal with conflict by trying to avoid it. “I hate company politics!” they say. “Just let me do my job.” But effective managers know they cannot turn away. Instead, with integrity and for good ends, they proactively engage the organization to create the conditions for their success. They build and nurture a broad network of ongoing relationships with those they need and those who need them; that is how they influence people over whom they have no formal authority. They also take responsibility for making their boss, a key member of their network, a source of influence on their behalf.

Manage Your Team

As a manager, Wei worked closely with each of her people, who were spread across the U.S. and the Far East. But she rarely called a virtual group meeting, and only once had her group met face-to-face. “In my experience,” she told us, “meetings online or in person are usually a waste of time. Some people do all the yakking, others stay silent, and not much gets done. It’s a lot more efficient for me to work with each person and arrange for them to coordinate when that’s necessary.” It turned out, though, that she was spending all her time “coordinating,” which included a great deal of conflict mediation. People under her seemed to be constantly at odds, vying for the scarce resources they needed to achieve their disparate goals and complaining about what others were or were not doing.
Too many managers overlook the possibilities of creating a real team and managing their people as a whole. They don’t realize that managing one-on-one is just not the same as managing a group and that they can influence individual behavior much more effectively through the group, because most of us are social creatures who want to fit in and be accepted as part of the team. How do you make the people who work for you, whether on a project or permanently, into a real team—a group of people who are mutually committed to a common purpose and the goals related to that purpose?
To do collective work that requires varied skills, experience, and knowledge, teams are more creative and productive than groups of individuals who merely cooperate. In a real team, members hold themselves and one another jointly accountable. They share a genuine conviction that they will succeed or fail together. A clear and compelling purpose, and concrete goals and plans based on that purpose, are critical. Without them no group will coalesce into a real team.
Team culture is equally important. Members need to know what’s required of them collectively and individually; what the team’s values, norms, and standards are; how members are expected to work together (what kind of conflict is acceptable or unacceptable, for example); and how they should communicate. It’s your job to make sure they have all this crucial knowledge.
Effective managers also know that even in a cohesive team they cannot ignore individual members. Every person wants to be a valued member of a group and needs individual recognition. You must be able to provide the attention members need, but always in the context of the team.
Effective managers know that even in a cohesive team they cannot ignore individual members.
And finally, effective managers know how to lead a team through the work it does day after day—including the unplanned problems and opportunities that frequently arise—to make progress toward achieving their own and the team’s goals.

Be Clear on How You’re Doing

The three imperatives will help you influence both those who work for you and those who don’t. Most important, they provide a clear and actionable road map for your journey. You must master them to become a fully effective manager.
These imperatives are not simply distinct managerial competencies. They are tightly integrated activities, each of which depends on the others. Getting your person-to-person relationships right is critical to building a well-functioning team and giving its individual members the attention they need. A compelling team purpose, bolstered by clear goals and plans, is the foundation for a strong network, and a network is indispensable for reaching your team’s goals.
Knowing where you’re going is only the first half of what’s required. You also need to know at all times where you are on your journey and what you must do to make progress. We’re all aware that the higher you rise in an organization, the less feedback you get about your performance. You have to be prepared to regularly assess yourself.
Too many managers seem to assume that development happens automatically. They have only a vague sense of the goal and of where they stand in relation to it. They tell themselves, “I’m doing all right” or “As I take on more challenges, I’ll get better.” Consequently, those managers fall short. There’s no substitute for routinely taking a look at yourself and how you’re doing. (The exhibit “Measuring Yourself on the Three Imperatives” will help you do this.)
Don’t be discouraged if you find several areas in which you could do better. No manager will meet all the standards implicit in the three imperatives. The goal is not perfection. It’s developing the strengths you need for success and compensating for any fatal shortcomings. Look at your strengths and weaknesses in the context of your organization. What knowledge and skills does it—or will it—need to reach its goals? How can your strengths help it move forward? Given its needs and priorities, what weaknesses must you address right away? The answers become your personal learning goals.

What You Can Do Right Now

Progress will come only from your work experience: from trying and learning, observing and interacting with others, experimenting, and sometimes pushing yourself beyond the bounds of comfort—and then assessing yourself on the three imperatives again and again. Above all, take responsibility for your own development; ultimately, all development is self-development.
You won’t make progress unless you consciously act. Before you started a business, you would draw up a business plan broken into manageable steps with milestones; do the same as you think about your journey. Set personal goals. Solicit feedback from others. Take advantage of company training programs. Create a network of trusted advisers, including role models and mentors. Use your strengths to seek out developmental experiences. We know you’ve heard all this advice before, and it is good advice. But what we find most effective is building the learning into your daily work.
For this purpose we offer a simple approach we call prep, do, review.

Prep.

Begin each morning with a quick preview of the coming day’s events. For each one, ask yourself how you can use it to develop as a manager and in particular how you can work on your specific learning goals. Consider delegating a task you would normally take on yourself and think about how you might do that—to whom, what questions you should ask, what boundaries or limits you should set, what preliminary coaching you might provide. Apply the same thinking during the day when a problem comes up unexpectedly. Before taking any action, step back and consider how it might help you become better. Stretch yourself. If you don’t move outside familiar patterns and practice new approaches, you’re unlikely to learn.

Do.

Take whatever action is required in your daily work, and as you do, use the new and different approaches you planned. Don’t lose your resolve. For example, if you tend to cut off conflict in a meeting, even constructive conflict, force yourself to hold back so that disagreement can be expressed and worked through. Step in only if the discussion becomes personal or points of view are being stifled. The ideas that emerge may lead you to a better outcome.

Review.

After the action, examine what you did and how it turned out. This is where learning actually occurs. Reflection is critical, and it works best if you make it a regular practice. For example, set aside time toward the end of each day—perhaps on your commute home. Which actions worked well? What might you have done differently? Replay conversations. Compare what you did with what you might have done if you were the manager you aspire to be. Where did you disappoint yourself, and how did that happen? Did you practice any new behaviors or otherwise make progress on your journey?
Some managers keep notes about how they spent their time, along with thoughts about what they learned. One CEO working on a corporate globalization strategy told us he’d started recording every Friday his reflections about the past week. Within six weeks, he said, he’d developed greater discipline to say no to anything “not on the critical path,” which gave him time to spend with key regulators and to jump-start the strategy.
If you still need to make progress on your journey, that should spur you to action, not discourage you. You can become what you want and need to be. But you must take personal responsibility for mastering the three imperatives and assessing where you are now.
A version of this article appeared in the January–February 2011 issue of Harvard Business Review.

Linda A. Hill is the Wallace Brett Donham Professor Business Administration at Harvard Business School.